{"uid":"cap_8GpkP0TiR4sZOZZe6Whvm","slug":"optimism-superchain-recent-block-transaction-data-4c17ffb5","name":"Optimism Superchain Recent Block Transaction Data","description":"OP Mainnet (Optimism) recent blocks from the public RPC: transactions per block, gas used per block, block time, and the transaction rate over the last N blocks (1 to 10). Sequencer revenue and Superchain-wide totals are not in this RPC and are not reported.","url":"https://api.chainmarket-api.workers.dev/api/crypto/optimism-superchain-tx?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","required":[],"properties":{"blocks":{"type":"string","description":"How many latest blocks to read, 2 to 10 (default 5)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"blocks":[{"gasUsed":3969759,"txCount":16,"gasLimit":40000000,"timestamp":"2026-10-23T09:35:49.000Z","gasUsedPct":9.92,"blockNumber":158574686},{"gasUsed":7340968,"txCount":16,"gasLimit":40000000,"timestamp":"2026-10-23T09:35:51.000Z","gasUsedPct":18.35,"blockNumber":158574687}],"source":"https://mainnet.optimism.io","checkedAt":"2026-10-23T09:35:59.780Z","txPerSecond":9.75,"tipBlockNumber":158574690,"avgBlockTimeSec":2}},"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":null,"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_7LHSj4WCOJRgjf734gIkV","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 transaction counts, gas usage, and block metadata for the latest N blocks on the Optimism (OP Mainnet) Superchain","exampleAgentPrompt":"What's the current transaction throughput and gas usage on Optimism mainnet? Pull the last 7 blocks so I can see how busy the network is.","exampleUseCases":[{"title":"Real-time Optimism network congestion check","prompt":"Is the Optimism network congested right now? Show me gas utilization and transaction counts for the last 5 blocks."},{"title":"DeFi bot pre-flight network check","prompt":"Before I submit my DeFi transaction, check Optimism's current block activity — I want to know txs per second and average block time from the last 10 blocks."},{"title":"L2 throughput monitoring dashboard","prompt":"Fetch the latest 8 Optimism superchain blocks and give me the transaction count, gas used percentage, and average block time so I can update my L2 performance dashboard."}],"resultDescription":"A JSON object containing an array of recent blocks (each with blockNumber, timestamp, txCount, gasUsed, gasLimit, gasUsedPct), plus aggregate metrics: txPerSecond, avgBlockTimeSec, tipBlockNumber, the source RPC URL, and a checkedAt timestamp.","failureModes":["Optimism RPC node unavailable or rate-limited — upstream connectivity error","Invalid blocks parameter (outside 2-10 range) — returns validation error","Payment failure via x402 — call not charged on failure","Network congestion causing slow block fetch — increased latency"],"whenToPreferThis":"Use this endpoint when you need real-time, on-chain Optimism block and transaction data without signing up for an API key. Ideal for agents monitoring network conditions, checking L2 throughput before submitting transactions, or building dashboards. Prefer this over Ethereum mainnet endpoints when your focus is specifically the Optimism/OP Superchain L2 layer.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-25T10:45:19.884Z","isFirstParty":false,"canonicalSlug":"optimism-superchain-recent-block-transaction-data-4c17ffb5"}