{"uid":"cap__jAFYG9sGD5HdQX4_ilvl","slug":"base-gas-oracle-6bf5ba0e","name":"Base Gas Oracle","description":"Base gas oracle. Use before sending or routing a transaction: returns current gas price, base fee, priority fee and estimated ETH cost for a plain transfer, an ERC-20 approve and a swap.","url":"https://seeker.4itools.store/paid/chain.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"},"queryParams":{"type":"object","properties":{"format":{"enum":["json"],"type":"string"},"chainId":{"type":"integer","description":"Chain ID to price gas for; currently only 8453 (Base mainnet)"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","schema":{"type":"object","properties":{"task":{"type":"string"},"chainId":{"type":"integer"},"checkedAt":{"type":"string"},"estimates":{"type":"object","properties":{"swap":{"type":"object","properties":{"eth":{"type":"number"},"gasLimit":{"type":"integer"}}},"transfer":{"type":"object","properties":{"eth":{"type":"number"},"gasLimit":{"type":"integer"}}},"erc20Approve":{"type":"object","properties":{"eth":{"type":"number"},"gasLimit":{"type":"integer"}}}}},"baseFeeGwei":{"type":"number"},"blockNumber":{"type":"integer"},"gasPriceGwei":{"type":"number"},"priorityFeeGwei":{"type":"number"}}},"example":{"task":"chain.gas","chainId":8453,"checkedAt":"2026-11-01T12:00:00.000Z","estimates":{"swap":{"eth":0.0000033,"gasLimit":300000},"transfer":{"eth":2.3e-7,"gasLimit":21000},"erc20Approve":{"eth":6.1e-7,"gasLimit":55000}},"baseFeeGwei":0.01,"blockNumber":12345678,"gasPriceGwei":0.011,"priorityFeeGwei":0.001}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.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_LKK95vH7AFbXktfs28qxx","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 current Base chain gas price, base fee, priority fee, and estimated ETH cost for common transaction types (plain transfer, ERC-20 approve, swap).","exampleAgentPrompt":"Before I send this swap on Base, can you check the current gas price, base fee, and priority fee, and tell me roughly how much ETH it'll cost for the swap versus a plain transfer?","exampleUseCases":[{"title":"Pre-swap gas cost check","prompt":"I'm about to do a token swap on Base — what are the current gas fees and how much ETH should I expect to spend on that swap transaction right now?"},{"title":"Budget gas for ERC-20 approval","prompt":"Before I approve this ERC-20 token spend on Base, tell me what the current base fee and priority fee are and estimate how much ETH the approve transaction will cost me."},{"title":"Decide whether to delay a transfer","prompt":"What are Base chain gas prices looking like right now? Give me the base fee, priority fee, and the estimated ETH cost for a plain ETH transfer so I can decide whether to wait or send now."}],"resultDescription":"A JSON object containing the current gas price, base fee, priority fee on the Base chain, and pre-calculated estimated ETH costs for three common transaction types: a plain ETH transfer, an ERC-20 approve, and a swap.","failureModes":["Base RPC node unavailable — may return an error or stale data","Network congestion causing delayed gas data","Invalid format query parameter returns a 400 or unexpected response","Payment not processed (x402 micropayment failure) — request rejected before gas data is returned"],"whenToPreferThis":"Use this endpoint when an agent is about to send, route, or cost-estimate any transaction on the Base chain and needs current gas data without manually querying an RPC node. It is especially useful when the agent needs quick cost estimates for common transaction types (transfer, approve, swap) in one call, avoiding the need to calculate gas units separately.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-15T00:30:34.046Z","isFirstParty":false,"canonicalSlug":"base-gas-oracle-6bf5ba0e"}