factor_cast_call
Executes read-only smart contract calls via Foundry cast to retrieve balances, allowances, and contract state without sending transactions.
Instructions
Execute a read-only contract call using Foundry cast. Useful for checking balances, allowances, and contract state.
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": {
"to": "<to>",
"signature": "<signature>"
},
"name": "factor_cast_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Contract address to call | |
| args | No | Function arguments | |
| block | No | Block number or "latest" (default: latest) | |
| decode | No | Decode the output (default: true) | |
| signature | Yes | Function signature (e.g., "balanceOf(address)(uint256)" or just "balanceOf(address)") |