Call a view function on a contract by Hname
POST/v1/chains/:chainID/callview
Execute a view call. Either use HName or Name properties. If both are supplied, HName are used.
Request
Path Parameters
chainID stringrequired
ChainID (Bech32)
- application/json
Body
required
Parameters
- Array [
- ]
arguments JSONDictrequired
Items Item[]
key stringrequired
key (hex-encoded)
value stringrequired
value (hex-encoded)
block string
contractHName stringrequired
The contract name as HName (Hex)
contractName stringrequired
The contract name
functionHName stringrequired
The function name as HName (Hex)
functionName stringrequired
The function name
Responses
- 200
Result
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
Items Item[]
key stringrequired
key (hex-encoded)
value stringrequired
value (hex-encoded)
{
"Items": [
{
"value": 130160803538225,
"key": 1801812273
},
{
"value": 130160803538225,
"key": 1801812273
}
]
}
Loading...