{"uid":"cap_NX77LueM2cEHoaxeyrPm6","slug":"x402-base-tools-gas-transaction-cost-oracle-b83621f7","name":"x402 Base Tools – Gas & Transaction Cost Oracle","description":"Current Base gas: base fee, priority fee percentiles over the last 10 blocks, the L1 data fee of a typical transaction, and what an ETH transfer, an ERC-20 transfer, a USDC transferWithAuthorization (an x402 payment), a swap and an NFT mint cost now in ETH and USD (ETH/USD from Chainlink).","url":"https://base.kagurazaka.dev/v1/gas?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"block":"37000000","costs":{"eth_transfer":{"eth":7e-7,"gas":21000,"usd":0.0017}},"eth_usd":2356.9,"base_fee_gwei":0.005,"priority_fee_gwei":{"low":0.0006,"high":0.01,"medium":0.002}}},"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_NNsVRJ6pBImyQeecAXqHu","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 current Base network gas fees (base fee, priority fee percentiles, L1 data fee) and the USD/ETH cost of common transaction types including ETH transfers, ERC-20 transfers, USDC x402 payments, swaps, and NFT mints.","exampleAgentPrompt":"What's the current gas situation on Base right now — base fee, priority fee percentiles, and how much would a USDC x402 payment and a regular ETH transfer cost me in USD?","exampleUseCases":[{"title":"Pre-transaction cost check for DeFi bot","prompt":"Before I execute this swap on Base, tell me what the current gas fees are and how much the swap will cost me in USD right now."},{"title":"x402 payment fee estimation","prompt":"I'm about to send a USDC transferWithAuthorization payment on Base — what will that cost me in ETH and USD at current gas prices?"},{"title":"NFT minting cost dashboard","prompt":"What does it cost in USD to mint an NFT on Base right now, and what's the current ETH price from Chainlink?"}],"resultDescription":"A JSON object containing the current block number, ETH/USD price (from Chainlink), base fee in gwei, priority fee percentiles (low/medium/high) in gwei, and a cost breakdown for common transaction types (ETH transfer, ERC-20 transfer, USDC transferWithAuthorization, swap, NFT mint) each expressed in both ETH and USD.","failureModes":["Chainlink price feed unavailable — ETH/USD price may be stale or missing","Base RPC node timeout — may return 502/503 if upstream node is unresponsive","x402 payment failure — endpoint costs $0.001 USDC per call; unpaid requests return 402","Gas oracle calculation error if block data is temporarily unavailable"],"whenToPreferThis":"Use this endpoint when you need a single, unified snapshot of Base network gas conditions AND the real USD cost of specific transaction types (including x402/USDC payments) — especially when you need ETH/USD pricing from Chainlink baked in. Prefer this over raw RPC calls when you want pre-calculated USD costs for ETH transfers, ERC-20 transfers, swaps, and NFT mints without doing the math yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:35:24.113Z","isFirstParty":false,"canonicalSlug":"x402-base-tools-gas-transaction-cost-oracle-b83621f7"}