{"uid":"cap_MZKOTZpZhUIbtJ0l-RCkW","slug":"api-x402node-dev-0c8166fc","name":"Base L2 Current Gas Price (x402node)","description":"Base L2 mainnet current gas price (gwei) via LlamaRPC eth_gasPrice. Use no params. Built for AI agents pricing Base swaps, x402 settlements, and L2 deploy costs, base gas fee estimate Accepts payment on Base or Solana — either network works.","url":"https://api.x402node.dev/chain/base-gas","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NClCYX-k6jI13sPcmGIkA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","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 in gwei on the Base L2 mainnet by calling eth_gasPrice via LlamaRPC, with no input parameters required.","exampleAgentPrompt":"What's the current gas price on Base mainnet right now in gwei? I need to estimate fees before I submit a swap.","exampleUseCases":null,"resultDescription":"Returns the current gas price on the Base L2 mainnet in gwei, sourced from a live eth_gasPrice call via LlamaRPC. Useful for estimating transaction costs for swaps, x402 micropayment settlements, or smart contract deployments on Base.","failureModes":["LlamaRPC upstream unavailability returns an error or timeout","Network congestion may cause momentarily stale or delayed gas price readings","Invalid or malformed POST body may return a 400 error","x402 payment failure (insufficient USDC balance) results in 402 Payment Required before data is returned"],"whenToPreferThis":"Use this endpoint when an agent needs real-time Base L2 gas prices without setting up its own RPC connection or API key, especially when pricing x402 micropayment settlements, Base swaps, or L2 smart contract deployments. Prefer over Ethereum mainnet gas endpoints when the target chain is specifically Base L2.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:53:35.432Z","isFirstParty":false}