estimate_gas
Estimate the gas cost for an EVM transaction before sending it by providing the recipient, optional value, and data. Helps avoid failed transactions and manage network fees.
Instructions
Estimate the gas cost for a transaction
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>"
},
"name": "estimate_gas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The recipient address | |
| data | No | The transaction data as a hex string | |
| value | No | The amount of ETH to send in ether (e.g., '0.1') |