estimateGas
Calculate gas fees for Ethereum transactions to optimize costs before execution.
Instructions
Estimate gas 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": "estimateGas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| value | No | ||
| data | No | ||
| chainId | No |