{"uid":"cap_O8kOSP5vHmd38I8U653R9","slug":"synapse-api-x-layer-latest-block-lookup-1a75232b","name":"Synapse API — X Layer Latest Block Lookup","description":"High-speed API suite for AI processing, web scraping, and smart data utilities across 57+ blockchain networks. Pay-per-call via x402.","url":"https://synapse-api-brown.vercel.app/api/xlayer/block/latest","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","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"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.01/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_9NgJwfjc8IGBZxtO5VHt9","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":"Fetches the latest block data from the X Layer (OKX Layer 2) blockchain network","exampleAgentPrompt":"What is the latest block on the X Layer blockchain right now — give me the block number, hash, and timestamp?","exampleUseCases":[{"title":"Real-time X Layer block monitoring","prompt":"Keep checking the latest block on X Layer every few seconds and alert me when the block number jumps by more than 10 — I want to know if block production is lagging."},{"title":"DApp sync status check","prompt":"Fetch the current X Layer block height so I can compare it against my DApp's last indexed block and see how far behind we are."},{"title":"Transaction confirmation timing","prompt":"I just submitted a transaction on X Layer — what is the latest block number so I can calculate how many confirmations it has so far?"}],"resultDescription":"Returns the latest block data from the X Layer blockchain, including block number (height), block hash, parent hash, timestamp, transaction count, gas used, gas limit, miner address, and other standard EVM block fields. This represents the current chain head at the moment of the request.","failureModes":["X Layer RPC node unavailable — upstream node connectivity issue","Payment not received — 402 response requiring valid x402 USDC payment header","Request body malformed — must be a valid JSON POST with proper bodyType","Rate limiting or quota exceeded — too many calls in a short period","Network congestion causing stale or delayed block data"],"whenToPreferThis":"Use this endpoint when you need real-time X Layer (OKX's EVM-compatible Layer 2) block data without running your own node. Ideal for agents monitoring chain state, checking transaction confirmations, or syncing DApp indexers on the X Layer network specifically. Prefer this over generic blockchain explorers when you need programmatic, pay-per-call access with no subscription commitment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:50:00.012Z","isFirstParty":false}