contractCallView
Query smart contract view/pure methods to retrieve data without altering the blockchain. Specify the contract address, ABI, method, and optionally chain ID or provider for read-only operations.
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 (must be a view/pure function) | |
provider | No | Optional. Either a network name or custom RPC URL. Use getSupportedNetworks to get a list of supported networks. |