midl_read_contract
Read data from any smart contract by providing its address, ABI, and function name. Returns the function result for blockchain queries.
Instructions
Read data from a smart contract. Requires contract address, ABI, and function name. Returns the function result.
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": {
"address": "<address>",
"abi": "<abi>",
"functionName": "<functionName>"
},
"name": "midl_read_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Contract address | |
| abi | Yes | Contract ABI (JSON array) | |
| functionName | Yes | Function name to call | |
| args | No | Function arguments |