wallet_call
Interact with smart contracts on Ethereum and EVM-compatible blockchains by calling contract methods without executing transactions. Use wallet details, transaction data, and optional block tags for precise queries.
Instructions
Call a contract method without sending a transaction
Input Schema
Name | Required | Description | Default |
---|---|---|---|
blockTag | No | Optional block tag (latest, pending, etc.) | |
transaction | Yes | The transaction to call | |
wallet | No | The wallet (private key, mnemonic, or JSON). If not provided, uses PRIVATE_KEY environment variable if set. |
Input Schema (JSON Schema)
{
"properties": {
"blockTag": {
"description": "Optional block tag (latest, pending, etc.)",
"type": "string"
},
"transaction": {
"description": "The transaction to call",
"properties": {
"data": {
"type": "string"
},
"from": {
"type": "string"
},
"gasLimit": {
"type": "string"
},
"gasPrice": {
"type": "string"
},
"to": {
"type": "string"
},
"value": {
"type": "string"
}
},
"required": [
"to"
],
"type": "object"
},
"wallet": {
"description": "The wallet (private key, mnemonic, or JSON). If not provided, uses PRIVATE_KEY environment variable if set.",
"type": "string"
}
},
"required": [
"transaction"
],
"type": "object"
}