Estimate gas
rpc_estimate_gasCalculate required gas for an EVM transaction by providing chain ID and transaction details, helping determine cost before sending.
Instructions
Estimate gas for a transaction request.
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": {
"chainId": "<chainId>",
"transaction": "<transaction>"
},
"name": "rpc_estimate_gas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | Yes | EVM chain ID (for example 1 for Ethereum mainnet) | |
| transaction | Yes |