Read Contract
Last updated
Last updated
POST /networks/read-contract
Calls a read-only function on a smart contract. In Solidity, these use the view
keyword. Note: Currently only works on EVM compatible chains.
No permissions are required as this only exposes public blockchain data.
kind
Required
Specify "Evm
". Additional kinds will be added in the future.
Enum String
network
Required
Enum String
contract
Required
Address of the contract to call
String
data
Required
String
Note the data
field in the response is hex encoded.
You can use the following code with the Dfns Typescript SDK to execute this call:
Network used for the wallet (See for possible values)
Encoded hex string indicating which function in the smart contract to call with which parameters. For more information, see the .