x420_chain_gas-estimate
Estimates Base mainnet gas prices and EIP-1559 fees, with reference ETH and ERC-20 transfer costs, and optionally calculates estimateGas for a custom call using to, value, and data.
Instructions
Base gas estimate: Current Base mainnet gas price, EIP-1559 fee estimate and base fee, reference costs for an ETH transfer and a typical ERC-20 transfer, and optionally an estimateGas for a call you describe (to, value, data). Source: Base mainnet RPC. L1 data fee not included. Not professional, legal, insurance, engineering, medical, financial or tax advice. PAID: $0.02 USDC per call, settled on Base via x402 from the wallet in X420_MCP_WALLET_PRIVATE_KEY (real money). Returns: JSON: gas_price_gwei, max_fee_per_gas_gwei, base_fee_gwei, reference{eth_transfer, erc20_transfer_typical}, requested{estimate} - the deliverable plus X420's signed receipt and the settlement transaction. Example input: {}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "x420_chain_gas-estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | destination address to estimate a call against (default: none) | |
| data | No | 0x calldata for the estimate (default: none) | |
| from | No | sender address for the estimate (default: none) | |
| value_eth | No | ETH value for the estimate (default 0) |