{"uid":"cap_S7WF4MLbTiJTKMPcw8lwp","slug":"base-gas-oracle-current-gas-price-transaction-cost-estimator-a866935d","name":"Base Gas Oracle – Current Gas Price & Transaction Cost Estimator","description":"Live Base gas oracle: current gas price plus estimated cost (ETH & USD) for a transfer, swap, or mint. Send {} — no input needed. Agents budget transactions before acting.","url":"https://x402-services-production.up.railway.app/api/crypto/gas","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"_":{"type":"string","description":"No parameters required"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GmDvWZsV-M8Rscqz-HKtj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current gas price on Base plus estimated ETH and USD costs for transfer, swap, and mint operations — no input required.","exampleAgentPrompt":"Before you execute anything onchain, check the current Base gas price and tell me how much it'll cost in ETH and USD to do a swap right now.","exampleUseCases":[{"title":"Pre-trade gas budget check","prompt":"Before you submit that token swap on Base, look up the current gas price and tell me the estimated ETH and USD cost so I can decide if it's worth doing right now."},{"title":"NFT mint cost check","prompt":"I'm about to mint an NFT on Base — what's the gas fee going to cost me in USD at current prices?"},{"title":"Onchain agent transaction gating","prompt":"Check the current Base gas fees and only proceed with the onchain transfer if the estimated USD cost is under $0.50."}],"resultDescription":"Returns the live gas price on Base along with pre-calculated ETH and USD cost estimates for three common transaction types: a standard token transfer, a DEX swap, and an NFT mint. Allows agents to make cost-aware decisions before submitting any onchain transaction.","failureModes":["RPC node unavailable — gas price fetch fails with a 5xx error","Base network congestion may cause momentarily stale or spiking gas readings","USD conversion may lag if external price feed is delayed","Payment of $0.003 USDC not provided or rejected — returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when an AI agent needs to budget or gate onchain transactions on Base before execution — specifically when you want pre-computed USD cost estimates for transfers, swaps, or mints without doing the gas math yourself. Prefer this over raw RPC calls when you need both ETH and USD cost breakdowns in a single, no-input call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:55:25.290Z","isFirstParty":false}