read-contract
Read data from verified smart contracts on Rootstock blockchain by calling view/pure functions. Specify contract address and network to retrieve on-chain state.
Instructions
Read data from a verified smart contract on the Rootstock blockchain by calling view/pure functions
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": {
"testnet": "<testnet>",
"contractAddress": "<contractAddress>"
},
"name": "read-contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| testnet | Yes | Use testnet (true) or mainnet (false) | |
| functionArgs | No | Array of arguments for the function call (required if the function has parameters) | |
| functionName | No | Name of the view/pure function to call - if not provided, available functions will be listed | |
| contractAddress | Yes | Contract address to read from (0x... format) - must be a verified contract |