read_contract
Call view and pure functions on TRON smart contracts using addresses and function signatures. Read contract states and data without authentication or private keys.
Instructions
Call a view/pure function on a TRON smart contract. No auth or private key required.
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": {
"contract_address": "<contract_address>",
"function_selector": "<function_selector>"
},
"name": "read_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contract_address | Yes | Contract TRON address. | |
| function_selector | Yes | Function signature, e.g. "balanceOf(address)". | |
| parameter | No | ABI-encoded parameter hex (optional). |