chains
Call a view function on a contract by Hname
Changed onExecute a view call. Either use HName or Name properties. If both are supplied, HName are used.
post/v1/chains/{chainID}/callview
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- URL/v1/chains/{chainID}/callview
- Authnone declared
Path parameters
chainIDstring string required
ChainID (Bech32)
Request body
Example request
{
"contractHName": "contractHName",
"functionName": "functionName",
"functionHName": "functionHName",
"arguments": {
"Items": [
{
"value": "value",
"key": "key"
},
{
"value": "value",
"key": "key"
}
]
},
"block": "block",
"contractName": "contractName"
}Response
Result
Example response
{
"Items": [
{
"value": 130160803538225,
"key": 1801812273
},
{
"value": 130160803538225,
"key": 1801812273
}
]
}Changes
- info
added the new optional request property
- info
- info
api tag
chainsadded - info
api tag
requestsremoved
- info