read_contract
Retrieve specific data from smart contracts on EVM chains by providing contract address, ABI, function name, and required arguments.
Instructions
Read a value from a contract
Input Schema
Name | Required | Description | Default |
---|---|---|---|
abi | Yes | ||
args | Yes | ||
chainId | Yes | ||
contractAddress | Yes | ||
functionName | Yes |
Input Schema (JSON Schema)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"abi": {
"type": "string"
},
"args": {
"items": {
"type": "string"
},
"type": "array"
},
"chainId": {
"type": "number"
},
"contractAddress": {
"pattern": "^0x.*",
"type": "string"
},
"functionName": {
"type": "string"
}
},
"required": [
"contractAddress",
"chainId",
"abi",
"functionName",
"args"
],
"type": "object"
}