{"uid":"cap_R3eCaxXmaBv8sEnkVY_3o","slug":"agent-data-tools-revmesh2074-workers-dev-base-gas-estimate-a5f36b0c","name":"Base Gas Estimate","description":"Estimate the gas a transaction would use on Base (eth_estimateGas) and what it would cost at the current gas price, in gas units, gwei and ETH. Give to, plus value in ETH and calldata for a contract call, and the sender when the call depends on it. Use before sending a transaction or to price a batch; for the gas price alone use base_gas. A transaction that would revert is 422 with the reason, uncharged.","url":"https://agent-data-tools.revmesh2074.workers.dev/base/estimate-gas?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["to"],"properties":{"to":{"type":"string","description":"0x recipient or contract address"},"data":{"type":"string","description":"Optional 0x calldata for a contract call"},"from":{"type":"string","description":"0x sender address (default: an empty address)"},"value":{"type":"string","description":"Amount of ETH to send, in ETH (default 0)"}}},"responseSchema":{"type":"object","properties":{"to":{"type":"string"},"gas":{"type":"string"},"cost":{"type":"string"},"from":{"type":"string"},"block":{"type":"number"},"chain":{"type":"string"},"value":{"type":"string"},"symbol":{"type":"string"},"chainId":{"type":"number"},"gasPriceGwei":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"0.01","displayCostAsset":"USD","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yYMoOqKGhKJ5tFFttciOp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agent-data-tools.revmesh2074.workers.dev","brandSlug":"agent-data-tools-revmesh2074-workers-dev-x402","brandBaseUrl":"https://agent-data-tools.revmesh2074.workers.dev","brandDocsUrl":null,"whatItDoes":"Estimates the gas units and ETH cost a transaction would consume on the Base blockchain using eth_estimateGas at the current gas price","exampleAgentPrompt":"Before I send ETH to 0xAbCd1234...5678 on Base, can you estimate how much gas it'll use and what it'll cost in ETH right now?","exampleUseCases":[{"title":"Pre-flight check before ETH transfer","prompt":"Estimate the gas cost for sending 0.5 ETH from 0xSenderAddress to 0xRecipientAddress on Base — I want to know the gas units and ETH cost before I submit the transaction."},{"title":"Smart contract call cost estimation","prompt":"How much gas will it cost to call this contract on Base? The contract is at 0xContractAddress, my wallet is 0xMyWallet, and here's the calldata: 0xa9059cbb000000000000000000000000recipient0000000000000000000000000000000000000000000000000de0b6b3a7640000"},{"title":"Catch a reverting transaction before sending","prompt":"Can you simulate this contract call on Base and tell me if it would revert before I actually send it? To: 0xContractAddress, from: 0xMyWallet, data: 0x23b872dd..."}],"resultDescription":"Returns an object with the estimated gas units, current gas price in gwei, total transaction cost in ETH, the sender and recipient addresses, the ETH value being sent, the block number at which the estimate was made, and the chain name and ID. If the transaction would revert, returns HTTP 422 with the revert reason (and no charge is applied).","failureModes":["422 Unprocessable Entity — transaction would revert on-chain; response body contains the revert reason string","Invalid 'to' address format causes a 400 or validation error","Malformed calldata in 'data' field may cause a revert or parsing error","Network congestion or RPC unavailability may cause timeouts","Missing required 'to' parameter returns an error"],"whenToPreferThis":"Use this endpoint when you need to estimate the gas cost of a specific transaction on Base before submitting it, especially for contract calls where gas usage depends on calldata and sender state. Prefer this over base_gas (which only returns the current gas price) when you need the full cost estimate for a particular transaction. Ideal for pre-flight checks, batch pricing, and detecting reverts before they happen on-chain.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T05:42:41.411Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-revmesh2074-workers-dev-base-gas-estimate-a5f36b0c"}