contractCall
Execute read-only smart contract methods by specifying the contract address, ABI, and method name. Query blockchain data without altering the state.
Instructions
Call a view/pure method on a smart contract (read-only operations)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
abi | Yes | The ABI of the contract as a JSON string | |
args | No | The arguments to pass to the method | |
chainId | No | Optional. The chain ID to use for the call. If provided, will verify it matches the provider's network. | |
contractAddress | Yes | The address of the contract to call | |
method | Yes | The name of the method to call | |
provider | No | Optional. Either a network name or custom RPC URL. Use getSupportedNetworks to get a list of supported networks. |