{"uid":"cap_1NEGEKM_j5F6D817xZIMm","slug":"synapse-api-x-layer-rpc-endpoint-3d104c07","name":"Synapse API — X Layer RPC Endpoint","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/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_qJfXuvfj3-TRRT8MQojNj","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 (OKX Layer 2) blockchain network via a pay-per-call HTTP endpoint.","exampleAgentPrompt":"Can you query the X Layer blockchain to get the current ETH balance for address 0xABC123... using the eth_getBalance RPC method?","exampleUseCases":[{"title":"Check wallet balance on X Layer","prompt":"What is the current OKB token balance for wallet address 0xDEADBEEF... on the X Layer network? Use eth_getBalance to look it up."},{"title":"Fetch latest block from X Layer","prompt":"Get me the latest block number and its details from the X Layer blockchain using eth_getBlockByNumber."},{"title":"Broadcast transaction to X Layer","prompt":"Submit this signed raw transaction to the X Layer network using eth_sendRawTransaction: 0xf86c..."}],"resultDescription":"Returns a standard JSON-RPC response object containing the result field with blockchain data (balance, block info, transaction hash, contract return value, etc.) or an error object with code and message if the call fails.","failureModes":["Invalid or unsupported RPC method returns JSON-RPC error","Malformed params array causes parse error response","Payment not provided results in 402 Payment Required","Network congestion or node unavailability causes timeout","Invalid transaction data returns execution revert error","Rate limiting if payment is not correctly attached per call"],"whenToPreferThis":"Use this endpoint when you need programmatic JSON-RPC access to the X Layer (OKX zkEVM L2) blockchain and want pay-per-call micropayment billing via x402 rather than managing a subscription API key. Ideal for agents that make sporadic blockchain queries without committing to a monthly plan.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:45:19.783Z","isFirstParty":false,"canonicalSlug":"synapse-api-x-layer-rpc-endpoint-3d104c07"}