v1

latestOpenAPI 3.0.12026-07-177294143.2 KB
chains

Call a view function on a contract by Hname

Execute a view call. Either use HName or Name properties. If both are supplied, HName are used.

post/v1/chains/{chainID}/callview

Path parameters

chainIDstring string required

ChainID (Bech32)

Request body

blockstring string
contractHNamestring string required

The contract name as HName (Hex)

contractNamestring string required

The contract name

functionHNamestring string required

The function name as HName (Hex)

functionNamestring string required

The function name

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
    }
  ]
}