call_contract
Execute read-only smart contract methods on the Rootstock blockchain by specifying the contract address, method name, and parameters using the standardized Model Context Protocol APIs.
Instructions
Call a smart contract method (read-only)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
abi | No | Optional contract ABI | |
contractAddress | Yes | Smart contract address | |
methodName | Yes | Method name to call | |
parameters | No | Method parameters |
Input Schema (JSON Schema)
{
"properties": {
"abi": {
"description": "Optional contract ABI",
"items": {},
"type": "array"
},
"contractAddress": {
"description": "Smart contract address",
"type": "string"
},
"methodName": {
"description": "Method name to call",
"type": "string"
},
"parameters": {
"description": "Method parameters",
"items": {},
"type": "array"
}
},
"required": [
"contractAddress",
"methodName"
],
"type": "object"
}