read_contract
Read data from any smart contract by supplying the contract ID and function name, with optional parameters for the call.
Instructions
Read data from 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": {
"contractId": "<contractId>",
"functionName": "<functionName>"
},
"name": "read_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | Function parameters | |
| contractId | Yes | Contract ID | |
| functionName | Yes | Function name to call |