{"uid":"cap_8bPdZpIk0c-IlKSmGlh6K","slug":"base-onchain-tools-gas-price-786e1a53","name":"Base Onchain Tools – Gas Price","description":"Eleven read-only endpoints answering questions about Base mainnet that are tedious to assemble from raw RPC: what an unverified contract is actually able to do, whether a token transfer will revert and for what reason, what an arbitrary token is worth, and whether an address is safe to pay. Priced $0.001-$0.04 per call in USDC over x402. No account, no API key, no signup, no minimum, no rate limit to negotiate — the payTo address in the 402 response is the whole integration. Failed calls are not billed. The payment middleware cancels settlement on any 4xx or 5xx, so a malformed parameter or an upstream outage costs nothing. Answers are read live from Base mainnet at request time, with failover across five independent RPC providers. A batch that comes back incomplete is treated as a failure rather than returned with the missing entries as zeros, because a confident wrong answer costs a caller more than an error does. Scope is deliberately narrow: Base mainnet only, reads only, no keys held, nothing stored between requests.","url":"https://base-onchain-tools.dolerite.workers.dev/v1/base/gas","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"gas_price_gwei":"0.006","estimated_erc20_transfer_cost_eth":"0.0000004"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hcNQFFHri6vRiNXu_bkMQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current Base mainnet gas price in gwei and estimated ERC-20 transfer cost in ETH, read live from the network.","exampleAgentPrompt":"What's the current gas price on Base mainnet and how much would an ERC-20 token transfer cost right now?","exampleUseCases":[{"title":"Pre-transaction cost check","prompt":"Before I send these USDC tokens on Base, can you tell me what the current gas price is and how much ETH the transfer will cost me?"},{"title":"Gas fee monitoring for DeFi bot","prompt":"Check the live gas price on Base mainnet right now — I need to decide whether it's cheap enough to execute my trade."},{"title":"Onchain cost estimation for app","prompt":"What are the current Base network fees in gwei and what would a standard ERC-20 transfer actually cost in ETH today?"}],"resultDescription":"A JSON object with two fields: gas_price_gwei (the current Base mainnet gas price expressed in gwei as a string) and estimated_erc20_transfer_cost_eth (the estimated cost of a standard ERC-20 token transfer in ETH as a string). Data is read live from Base mainnet at request time with failover across five independent RPC providers.","failureModes":["Upstream RPC outage across all five providers returns an error (not billed)","Malformed or unexpected query parameters return a 4xx error (not billed)","Transient network latency may cause timeouts on slow connections"],"whenToPreferThis":"Choose this endpoint when you need a live, reliable gas price reading on Base mainnet specifically, without setting up your own RPC connection or negotiating rate limits. It is ideal for AI agents, DeFi bots, or wallets that need to make real-time cost decisions before submitting transactions. The pay-per-call x402 model means no account setup and no cost on failures, making it suitable for low-frequency or bursty usage patterns.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:37:58.436Z","isFirstParty":false}