read_contract
Read data from any EVM smart contract by calling view or pure functions. Supply the contract address, ABI, and function name to get balances, prices, and more across networks.
Instructions
Read data from a smart contract by calling a view/pure function
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abi | Yes | The ABI of the smart contract function, as a JSON array | |
| args | No | The arguments to pass to the function | |
| network | No | Network name (e.g. 'bsc', 'opbnb', 'ethereum', 'base', etc.) or chain ID. Supports others main popular networks. Defaults to BSC mainnet. | bsc |
| functionName | Yes | The name of the function to call on the contract | |
| contractAddress | Yes | The address of the smart contract to interact with |