estimate_gas
Calculate the gas required for a blockchain transaction using destination address and data, plus optional chain and ETH value.
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>",
"data": "<data>"
},
"name": "estimate_gas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination address (0x...) | |
| data | Yes | Transaction data (0x...) | |
| chain | No | Chain name or ID (default: ethereum) | |
| value | No | ETH value in wei (hex) | 0x0 |