cast_estimate
Estimate gas for a smart contract transaction before sending it, using the target contract, function signature, arguments, optional sender/value, and network RPC URL.
Instructions
Estimate gas for a transaction (cast estimate).
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>",
"rpcUrl": "<rpcUrl>"
},
"name": "cast_estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Address of the contract | |
| args | No | Function arguments in order | |
| from | No | Sender address | |
| value | No | ETH value to send (in wei) | |
| rpcUrl | Yes | RPC URL of the network | |
| signature | Yes | Function signature, e.g. "transfer(address,uint256)" |