read_contract
Calls read-only smart contract functions on TRON by contract address and function name, fetching the ABI from chain when needed.
Instructions
Call read-only functions on a smart contract.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contractAddress": "<contractAddress>",
"functionName": "<functionName>"
},
"name": "read_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abi | No | Optional contract ABI array. If not provided, will fetch from chain. Use for contracts with incomplete on-chain ABI. | |
| args | No | Function arguments (supports arrays and objects for complex types) | |
| network | No | Network name. Defaults to mainnet. | |
| functionName | Yes | Function name (e.g., 'name', 'symbol', 'balanceOf') | |
| contractAddress | Yes | The contract address |