{"uid":"cap_fTnJCzjkxkPiKJ4C7oquD","slug":"defi-shield-hazel-vercel-app-c3cfad10","name":"DeFi Shield L2 Finality Data","description":"","url":"https://defi-shield-hazel.vercel.app/api/chain/l2-finality","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","bodyType","body","method"],"properties":{"body":{"properties":{"chain":{"type":"string","description":"L2 chain name (default: base)"}}},"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":null,"example":{"request":{"chain":"base"},"response":{"chain":"Base","is_l2":true,"is_live":null,"chain_id":8453,"sequencer":"Coinbase (centralized sequencer)","timestamp":"2026-06-16T01:17:47.368Z","block_time":"~2s","rollup_type":"Optimistic Rollup (OP Stack)","latest_block":null,"hard_finality":"7 days (challenge period)","soft_finality":"~2s (sequencer confirmation)","challenge_period":"7 days","response_time_ms":103,"data_availability":"Ethereum L1 (blobs via EIP-4844)"}},"exampleRequest":{"chain":"base"},"tags":["x402"],"displayCostAmount":"0.1","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4MBVyTh_GtuvZAMxleiaW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns detailed Layer 2 finality information for a given chain, including rollup type, sequencer, challenge period, block time, soft/hard finality, and data availability method.","exampleAgentPrompt":"Can you pull the L2 finality details for Base — I want to know the rollup type, who the sequencer is, the challenge period, and how long both soft and hard finality take?","exampleUseCases":null,"resultDescription":"Returns a JSON object with the chain name, chain ID, rollup type (e.g. Optimistic Rollup / OP Stack), sequencer identity, soft finality duration (sequencer confirmation), hard finality duration (challenge period), block time, data availability mechanism, liveness status, latest block, and response timestamp.","failureModes":["Unsupported or unrecognized chain name returns an error or empty result","Network timeout if upstream chain data is unavailable","Null values for liveness or latest_block if real-time data is unavailable","Malformed request body returns 4xx error"],"whenToPreferThis":"Use this endpoint when you need structured, canonical L2 finality metadata for a specific chain — especially rollup type, challenge period, and sequencer details — rather than raw on-chain data. Ideal for DeFi risk assessment, cross-chain bridging decisions, or explaining Layer 2 security assumptions to users.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:45:57.482Z","isFirstParty":false}