{"uid":"cap_5f2k1pb4griewkXHC3I1b","slug":"bizintel-api-optimism-gas-price-0c817c17","name":"BizIntel API – Optimism Gas Price","description":"Fetches current Optimism L2 gas price estimation from the mainnet RPC pipeline.","url":"https://bizintel-api.hahavoid0.workers.dev/finance/gas-optimism","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"result":{"gasPriceWei":"10000000","gasPriceGwei":0.01},"warnings":[],"supported":true,"confidence":"high","data_as_of":"2026-06","disclaimer":"Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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_pnuFWvo9sjzuCTWVHOkur","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current gas price on the Optimism L2 network in both Wei and Gwei units","exampleAgentPrompt":"What's the current gas price on Optimism right now — give me the value in both Wei and Gwei so I can decide if it's a good time to submit my transaction?","exampleUseCases":[{"title":"Pre-transaction cost check","prompt":"Before I deploy my smart contract on Optimism, can you check what the current gas price is so I know roughly what fees to expect?"},{"title":"DeFi timing optimization","prompt":"I'm about to do a swap on an Optimism DEX — what's the gas price on Optimism right now? I want to wait if fees are too high."},{"title":"Gas cost monitoring dashboard","prompt":"Fetch the latest Optimism gas price in Gwei for me so I can log it and compare it against yesterday's average."}],"resultDescription":"Returns a JSON object containing the current Optimism gas price in Wei (string) and Gwei (float), a boolean indicating network support, a confidence level (e.g. 'high'), the data timestamp, and a standard informational disclaimer. Warnings array is included for any anomalies.","failureModes":["Network unavailable or Optimism RPC unreachable — may return unsupported or low-confidence result","Stale data if upstream oracle has not refreshed recently — check data_as_of field","Invalid or malformed POST body — returns 400-level error","Transient worker error on Cloudflare edge — retry recommended"],"whenToPreferThis":"Use this endpoint when you need a quick, cheap ($0.01 USDC) lookup of Optimism L2 gas prices without managing your own RPC node or API key. Ideal for agents that need to make transaction timing decisions, cost estimates, or display current fee data for Optimism specifically — as opposed to Ethereum mainnet or other L2s.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:48:48.560Z","isFirstParty":false}