{"uid":"cap_FEcVFGf-OtYWXB8yS5LFY","slug":"base-mainnet-gas-price-api-e7d4487c","name":"Base Mainnet Gas Price API","description":"Current Base mainnet gas price (wei/gwei), EIP-1559 base_fee_gwei/priority_fee_gwei, and gas_price_usd. Use when an agent must estimate gas cost in USD before sending a Base transaction.","url":"https://x402-data-api.sigrunner.workers.dev/chain/gas-price?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"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["gas_price_wei","gas_price_gwei","base_fee_gwei","priority_fee_gwei","gas_price_usd","chain"],"properties":{"chain":{"enum":["base"],"type":"string"},"base_fee_gwei":{"type":["number","null"]},"gas_price_usd":{"type":["number","null"]},"gas_price_wei":{"type":"string","pattern":"^[0-9]+$"},"gas_price_gwei":{"type":"number","minimum":0},"priority_fee_gwei":{"type":["number","null"]}},"additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{"chain":"base","base_fee_gwei":0.018,"gas_price_usd":3.93e-8,"gas_price_wei":"21284349","gas_price_gwei":0.021284349,"priority_fee_gwei":0.0032}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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":{"p10Cents":"0.1000","medianCents":"0.1000","p90Cents":"0.1000","minCents":"0.1000","maxCents":"0.1000","p95Cents":"0.1000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XkVr-_Bw1kKn7aV0MW12S","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current Base mainnet gas price in wei/gwei, EIP-1559 base fee and priority fee, and gas price in USD","exampleAgentPrompt":"What are the current gas fees on Base mainnet right now — give me the base fee, priority fee in gwei, and what that works out to in USD?","exampleUseCases":null,"resultDescription":"Returns current Base mainnet gas price as wei and gwei values, plus EIP-1559 breakdown with base_fee_gwei and priority_fee_gwei, and the gas_price_usd conversion for cost estimation","failureModes":["Base RPC node unavailable — may return 5xx error","Stale data if underlying node is syncing","USDC payment not processed — returns 402 Payment Required","Rate limit exceeded for the payment tier"],"whenToPreferThis":"Use this endpoint when you need real-time Base mainnet gas prices with EIP-1559 breakdown (base fee + priority fee) and USD cost conversion in a single call, especially for transaction cost estimation or gas monitoring on the Base L2 network","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T06:41:32.028Z","isFirstParty":false,"canonicalSlug":"base-mainnet-gas-price-api-e7d4487c"}