{"uid":"cap_7FwnKCS3CrsRPkP3Obeg8","slug":"phantom-api-xlayer-latest-block-eb0243dd","name":"Phantom API — XLayer Latest Block","description":"Lightning-fast access to blockchain data, smart contract insights, and Web3 infrastructure across 57+ networks. Pay-per-call via x402.","url":"https://phantom-api-omega.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_tSYePjbr29000i-JXxOzX","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 most recent block data from the XLayer blockchain network","exampleAgentPrompt":"What's the latest block on the XLayer network right now? I need the block number, hash, and timestamp.","exampleUseCases":[{"title":"Monitor XLayer chain head in real time","prompt":"Keep an eye on the XLayer blockchain for me — what's the latest block number and when was it produced?"},{"title":"Verify XLayer node sync status","prompt":"Check what block XLayer is currently on so I can confirm my node is fully synced with the chain head."},{"title":"Timestamp a blockchain event","prompt":"I need the current XLayer block number and its timestamp to anchor a smart contract event I'm recording — can you grab the latest block?"}],"resultDescription":"Returns structured data about the most recently produced block on the XLayer network, including block number, block hash, timestamp, and potentially transaction count and parent hash.","failureModes":["Network unavailable or XLayer RPC node unreachable — returns error or timeout","Payment of $0.01 USDC not fulfilled — returns HTTP 402 Payment Required","Malformed request body — returns 400 validation error","XLayer network experiencing downtime — may return stale or error response"],"whenToPreferThis":"Use this endpoint when you need fast, pay-per-call access to the latest XLayer block without managing your own RPC node or paying for a subscription. Preferred over self-hosted RPC when cost per call is acceptable and infrastructure overhead should be minimized. Choose this over generic Ethereum or EVM endpoints when specifically targeting the XLayer (OKX Layer 2) network.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:53:54.763Z","isFirstParty":false}