Call Read Function
POST /blockchains/{network}/call-read-function
Calls a read-only function on a smart contract. In Solidity, these use the view
keyword.
Request headers required. See Request Headers for more information.
Authentication required. See Authentication Headers for more information.
Required Permissions
Name | Conditions |
---|---|
| Always Required |
Parameters
Path parameters
Path parameter | Description |
---|---|
| Enumerated type representing the Blockchain network from the list found here. Currently EVM chains are supported: ETH, MATIC, BNB, AVAX-C, sFUEL, FTM, OP, ARB, AMB |
Request body
Request body fields | Required/Optional | Description | Type |
---|---|---|---|
| Required | Encoded hex string indicating which function in the smart contract to call with which parameters. For more information, see the encodeFunctionCall web3.js documentation. | String |
| Required | Address of the contract to call | String |
Sample request body
Response
Response example
Note the data
field in the response is hex encoded.
Last updated