{"uid":"cap_VINc_H8Um1F1wzLLubGm9","slug":"api-web3identity-com-b6b2764d","name":"Optimism L2 Network Statistics","description":"Comprehensive Optimism network statistics and metrics","url":"https://api.web3identity.com/api/l2/optimism","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"tps":{"type":"number"},"tvl":{"type":"number"},"name":{"type":"string"},"avgFee":{"type":"number"},"chainId":{"type":"number"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{}}},"response":{"id":"optimism","tvs":{"change7d":0.055883844629153634,"breakdown":{"btc":70130843,"ether":434541581.82483673,"other":575104070.5516231,"total":1508292736,"native":264307621.4375,"external":248119363.37252808,"canonical":995865608.7110729,"rwaPublic":0,"associated":233020320,"stablecoin":428516098.14464116,"rwaRestricted":0},"associatedTokens":[{"icon":"/images/custom-tokens/optimism.png","symbol":"OP"}]},"name":"OP Mainnet","slug":"op-mainnet","type":"layer2","risks":[{"name":"Sequencer Failure","value":"Self sequence","sentiment":"good","description":"In the event of a sequencer failure, users can force transactions to be included in the project's chain by sending them to L1. There can be up to a 12h delay on this operation."},{"name":"State Validation","value":"Fraud proofs (INT)","sentiment":"good","description":"Fraud proofs allow actors watching the chain to prove that the state is incorrect. Interactive proofs (INT) require multiple transactions over time to resolve."},{"name":"Data Availability","value":"Onchain","sentiment":"good","description":"All of the data needed for proof construction is published on Ethereum L1."},{"name":"Exit Window","value":"None","sentiment":"bad","description":"There is no exit window for users to exit in case of unwanted upgrades as they are initiated by the Security Council with instant upgrade power and without proper notice."},{"name":"Proposer Failure","value":"Self propose","sentiment":"good","description":"Anyone can be a Proposer and propose new roots to the L1 bridge."}],"stage":"Stage 1","badges":[{"id":"EVM","name":"EVM","type":"VM","action":{"id":"vm","type":"scalingFilter","value":"EVM"},"description":"This project uses the Ethereum Virtual Machine to run its smart contracts and supports the Solidity programming language"},{"id":"EthereumBlobs","name":"Ethereum with blobs","type":"DA","action":{"slug":"ethereum","type":"publicDaHighlight"},"description":"This project is posting its data to Ethereum as blobs"},{"id":"OPStack","name":"Built on OP Stack","type":"Stack","action":{"id":"stack","type":"scalingFilter","value":"OP Stack"},"description":"The project is built on the OP Stack"},{"id":"Superchain","name":"Part of the Superchain","type":"Infra","action":{"id":"infrastructure","type":"scalingFilter","value":"Superchain"},"description":"The project is part of the Superchain, meaning it's included in the Superchain registry or uses the Superchain config"},{"id":"Governance","name":"Governance","type":"Other","action":{"id":"other","type":"scalingFilter","value":"Governance"},"description":"This project features token voting"}],"source":"l2beat","category":"Optimistic Rollup","purposes":["Universal"],"hostChain":"Ethereum","providers":["OP Stack"],"timestamp":"2026-06-16T01:15:12.609Z","isArchived":false,"isUnderReview":false}},"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.010000","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.010000/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Sj0zaFSGLNWiOec3fJizL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns comprehensive real-time statistics and metrics for the Optimism Layer 2 network, including TPS, TVL, average fee, chain ID, and network name.","exampleAgentPrompt":"What are the current stats for the Optimism network — things like transactions per second, total value locked, and average transaction fee?","exampleUseCases":null,"resultDescription":"Returns a JSON object with Optimism network metrics including: name (string), chainId (number), tps (number — transactions per second), tvl (number — total value locked in USD), and avgFee (number — average transaction fee).","failureModes":["Network unavailability returns a 5xx error","Payment not provided or insufficient returns 402 Payment Required","Rate limiting may return 429 Too Many Requests","Stale or temporarily unavailable data from upstream sources may result in outdated metrics"],"whenToPreferThis":"Use this endpoint when you need a quick, consolidated snapshot of Optimism L2 performance metrics — particularly TPS, TVL, and average fees — in a single call. Prefer this over manual on-chain queries when you need aggregated, human-readable stats without parsing raw blockchain data. Best suited for dashboards, monitoring agents, or decision-making workflows that depend on current Optimism network health.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:40:26.505Z","isFirstParty":false}