{"uid":"cap_URkKdH2AO2lFG5mfCgRKs","slug":"op-mainnet-gas-conditions-01f7c7c9","name":"OP Mainnet Gas Conditions","description":"Pay-per-call data for AI agents, paid in USDC on Base with x402: token risk checks (rug check) on Base, Ethereum, Arbitrum, Optimism, Polygon and Solana, onchain reads (balances, transactions, gas, contracts, NFTs, whale trades, new pools, ENS and Basenames), ECB exchange rates, and Canadian sales tax and business days.","url":"https://ca-tax-api-mainnet.lxtap.workers.dev/optimism/gas?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"required":{"type":"string"},"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"note":"Excludes OP Mainnet's L1 data fee, which adds a small amount per transaction.","chain":"optimism","blockTime":"2026-10-22T15:50:33.000Z","nativeUsd":2394.09,"baseFeeGwei":"0.000000304","blockNumber":158542728,"gasPriceGwei":"0.001000304","nativeSymbol":"ETH","estimatedCost":{"erc20Transfer":{"usd":0.0001557,"native":"0.00000006501976"},"nativeTransfer":{"usd":0.00005029,"native":"0.000000021006384"}},"maxPriorityFeeGwei":"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_9Y_qdlHUvnr0N6Ge2v-bQ","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 Optimism Mainnet gas metrics including block number, base fee, gas price, priority fee in gwei, and estimated ETH/USD cost of native and ERC-20 transfers.","exampleAgentPrompt":"What are the current gas fees on Optimism Mainnet right now — give me the base fee, priority fee, gas price in gwei, and how much a native ETH transfer and an ERC-20 transfer would cost in both ETH and USD.","exampleUseCases":[{"title":"Pre-transaction gas check on Optimism","prompt":"Before I send this ERC-20 token on Optimism, can you check what the current gas fees are and tell me roughly how much the transfer will cost in USD?"},{"title":"DeFi bot gas optimization","prompt":"Pull the current gas conditions on OP Mainnet — base fee, priority fee, and estimated cost of an ERC-20 transfer — so I can decide whether it's worth executing my trade right now or wait for cheaper fees."},{"title":"Gas cost dashboard for portfolio app","prompt":"I need a live snapshot of OP Mainnet gas right now: current block, base fee, gas price in gwei, and what a standard ETH transfer and ERC-20 transfer would each cost in ETH and USD."}],"resultDescription":"Returns a JSON object with the current OP Mainnet block number, base fee in gwei, gas price in gwei, priority fee (tip) in gwei, and estimated costs in both ETH and USD for a native ETH transfer and an ERC-20 token transfer (using Chainlink ETH/USD price feed for USD conversion).","failureModes":["RPC node unavailability causes stale or missing block data","Chainlink ETH/USD feed latency may cause slightly outdated USD estimates","Network congestion on OP Mainnet could cause transient read errors","Cloudflare Worker cold-start latency on first invocation","x402 payment failure if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you specifically need real-time gas metrics for the Optimism (OP) Mainnet L2 network, including both raw gwei values and human-friendly USD cost estimates for common transaction types. Prefer over Ethereum Mainnet gas endpoints when your user is transacting on Optimism, and over generic gas trackers when you need structured JSON with USD cost estimates powered by Chainlink.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T12:45:05.713Z","isFirstParty":false,"canonicalSlug":"op-mainnet-gas-conditions-01f7c7c9"}