Execute contract view function (GET)
GET/api/contract/view/:contract/:function
Call a function of a deployed contract read-only, with no arguments, against the current tip. The contract segment is Base58-decoded, so it must be a contract address; built-in names such as Coin do not work here. Everything after the first / following the contract becomes the function name, so arguments cannot be added to the path.
To pass arguments, a caller key or a built-in contract name, use POST /api/contract/view. Do not add a pk query parameter: it is not Base58-decoded and makes the request fail.
Request
Responses
- 200
Call result