{"uid":"cap_ErDX1h2ev7CBpbuyxStAm","slug":"x402-base-tools-gas-transaction-cost-oracle-b9df98b1","name":"x402 Base Tools – Gas & Transaction Cost Oracle","description":"Base mainnet data for agents, read live from the chain and paid per call in USDC: gas prices and costs, token prices from Uniswap and Aerodrome pools, balances, token info, transaction decoding, x402 payment checks, EIP-3009 authorization status, Basenames and address profiles. Lookups of things that do not exist are not charged.","url":"https://wt7tysfcmjm8fpzl.68r.lambda-web.us-east-1.on.aws/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_BUu8vxIN-a3nA3MYIgz0m","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 L2 gas fees (base fee, priority fee percentiles), L1 data fee, and USD/ETH costs for common transaction types (ETH transfer, ERC-20 transfer, USDC x402 payment, swap, NFT mint) using Chainlink ETH/USD pricing.","exampleAgentPrompt":"What are current gas fees on Base right now — give me the base fee, priority fee ranges, and how much a USDC x402 payment and an ETH transfer would cost me in dollars?","exampleUseCases":[{"title":"Pre-flight cost check before x402 payment","prompt":"Before I trigger this x402 USDC payment on Base, what's the current gas cost for a transferWithAuthorization in dollars so I can decide if now is a good time?"},{"title":"NFT mint cost estimation","prompt":"I'm about to mint an NFT on Base — how much will gas cost me right now in ETH and USD, and what are the current priority fee levels?"},{"title":"Real-time gas dashboard for DeFi app","prompt":"Pull the latest Base gas stats for me: base fee, low/medium/high priority fees, L1 data fee, and the USD cost of a typical swap right now."}],"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 over the last 10 blocks, L1 data fee, and estimated costs in both ETH and USD for common transaction types: ETH transfer, ERC-20 transfer, USDC transferWithAuthorization (x402 payment), swap, and NFT mint.","failureModes":["RPC node unreachable — may return 5xx or stale data","Chainlink oracle temporarily unavailable — ETH/USD price may be absent","Lambda cold start may add latency on first call","Network congestion may cause slight staleness in fee data"],"whenToPreferThis":"Use this endpoint when you need real-time, multi-dimensional gas cost data on Base L2 specifically, especially for x402 payment flows (USDC transferWithAuthorization) or when you need transaction cost estimates in USD across several common transaction types in one call. Prefer this over generic Ethereum gas APIs when working on Base and when you need Chainlink-sourced ETH/USD pricing bundled with gas data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:35:22.852Z","isFirstParty":false,"canonicalSlug":"x402-base-tools-gas-transaction-cost-oracle-b9df98b1"}