{"uid":"cap_ffCIisRpEQo-HueJax_ZX","slug":"phantom-api-x-layer-rpc-endpoint-9fe20eb5","name":"Phantom API — X Layer RPC Endpoint","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/rpc?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"method":{"type":"string"},"params":{"type":"array","items":{}}}},"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_zXA3XcX0GqD48EVVJNXJC","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":"Provides JSON-RPC access to the X Layer blockchain network, enabling on-chain data queries and smart contract interactions via pay-per-call pricing.","exampleAgentPrompt":"Can you check the current ETH balance of wallet address 0xAbC123... on the X Layer network using an RPC call?","exampleUseCases":[{"title":"Check wallet balance on X Layer","prompt":"What's the current OKB token balance for wallet 0xDEADBEEF... on the X Layer network?"},{"title":"Read smart contract state","prompt":"Call the totalSupply function on the smart contract at 0x1234ABCD... deployed on X Layer and tell me what it returns."},{"title":"Fetch latest block information","prompt":"Get me the latest block number and its timestamp on the X Layer blockchain right now."}],"resultDescription":"Returns a standard JSON-RPC response object containing the result field with requested blockchain data (balance in wei, block object, transaction receipt, smart contract return value, etc.) or an error object with code and message if the request fails.","failureModes":["Invalid RPC method name returns JSON-RPC error with code -32601","Malformed params array causes parse error (-32700) or invalid params error (-32602)","Network congestion or node unavailability may cause timeout or 503 response","Insufficient x402 payment causes 402 Payment Required before RPC is executed","Querying non-existent block or transaction hash returns null result"],"whenToPreferThis":"Choose this endpoint when you need fast, pay-per-call RPC access to the X Layer (OKX Layer 2) network without managing node infrastructure or committing to a subscription. Ideal for agents that need occasional or unpredictable on-chain lookups on X Layer specifically, and want to pay only for what they use via USDC microtransactions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:46:52.683Z","isFirstParty":false,"canonicalSlug":"phantom-api-x-layer-rpc-endpoint-9fe20eb5"}