{"uid":"cap_rlNWwxUlVG2sHuRvUL-3w","slug":"base-gas-and-transaction-cost-b44ebf13","name":"Base Gas and Transaction Cost","description":"Base gas price now: what an ETH transfer, a USDC transfer and a Uniswap swap cost in USD, L1 fee included. What a transaction on Base costs right now, in dollars, including the L1 data fee most gas trackers leave out. Read from real receipts in the latest Base blocks: the median a plain ETH transfer, a USDC transfer and a Uniswap swap actually paid (L2 fee + L1 fee), what the same gas costs at the current base fee and median tip, and the tip spread over 20 blocks.","url":"https://apexfaucet.xyz/api/x402/base-gas?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"}}},"output":{"type":"object"}}},"responseSchema":null,"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_MZZBxASISnHCx7dj2UWWW","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 real-time gas price on Base including actual USD costs (L2 + L1 fee) for ETH transfers, USDC transfers, and Uniswap swaps, read from live block receipts.","exampleAgentPrompt":"What does a Uniswap swap actually cost on Base right now in dollars, including the L1 data fee — not just the L2 gas?","exampleUseCases":[{"title":"Pre-trade cost check for DeFi bot","prompt":"Before I execute this Uniswap swap on Base, tell me the real current cost in USD including L1 fees so I can decide if it's worth it."},{"title":"Gas tracker dashboard for Base users","prompt":"I'm building a dashboard — what are the actual median USD costs for an ETH transfer, a USDC transfer, and a Uniswap swap on Base right now, L1 fee included?"},{"title":"Alerting when Base gas spikes","prompt":"Check the current Base gas costs and let me know if a plain ETH transfer costs more than $0.10 right now including L1 fees."}],"resultDescription":"Returns current Base gas price, median transaction costs in USD for ETH transfers, USDC transfers, and Uniswap swaps (each broken down into L2 + L1 data fee components), estimated costs at the current base fee and median tip, and the miner tip spread observed over the last 20 blocks — all sourced from real transaction receipts in recent Base blocks.","failureModes":["Base RPC node unavailable or rate-limited — may return 503 or stale data","No recent blocks available to read receipts from — may return null or empty cost fields","Network congestion causing response delay","Payment of $0.001 USDC not confirmed — returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need accurate, receipt-based USD transaction costs on Base that include the often-ignored L1 data fee. Unlike standard gas trackers that show only L2 gas estimates, this endpoint reads from real transaction receipts so the numbers reflect what users actually paid. Ideal for DeFi agents, cost estimation before executing transactions, gas alerting systems, or any application needing true all-in Base transaction costs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-03T00:47:52.253Z","isFirstParty":false,"canonicalSlug":"base-gas-and-transaction-cost-b44ebf13"}