get_gas_estimate
Estimate transaction gas costs on Base by providing a destination address plus optional calldata or ETH value, returning precise gas fees in both ETH and USD-equivalent amounts.
Instructions
Estimate gas cost for a transaction on Base. Provide a to address and optional data/value to get precise gas estimates in ETH and USD-equivalent.
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": "get_gas_estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination address | |
| data | No | Transaction calldata (hex string) | 0x |
| value | No | ETH value to send (e.g. '0.001') | 0 |