Gas Estimate
estimate_gasEstimate the gas a transaction will use (eth_estimateGas) and its cost at the current gas price, with a 20% buffer; fails clearly when the call would revert. Use before signing.
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 | ||
| data | No | ||
| chain | No | ethereum | |
| value_eth | No | ||
| from_address | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |