{"uid":"cap_KWxfB2uXc1ikVtEoCjvZC","slug":"phantom-api-optimism-rpc-endpoint-29d012cf","name":"Phantom API — Optimism 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/optimism/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_L-FRfADJOVKrr4Dyv4akL","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 pay-per-call JSON-RPC access to the Optimism (OP Mainnet) blockchain network for reading chain state, querying transactions, and interacting with smart contracts.","exampleAgentPrompt":"Can you check the current ETH balance of wallet address 0xAbC...123 on the Optimism network using an eth_getBalance RPC call?","exampleUseCases":[{"title":"Check wallet balance on Optimism","prompt":"What's the ETH balance of address 0x1234...abcd on Optimism right now? Use eth_getBalance to look it up."},{"title":"Read smart contract state on OP Mainnet","prompt":"Call the totalSupply function on the USDC contract at 0xA0b8...eB48 on Optimism — I need to know the current circulating supply."},{"title":"Fetch latest Optimism block details","prompt":"Get me the details of the latest block on the Optimism chain — block number, timestamp, and transaction count — using eth_getBlockByNumber."}],"resultDescription":"Returns a standard JSON-RPC response object containing the result field populated with the requested on-chain data (e.g. hex-encoded balance, block object, transaction receipt, log array) or an error object if the call fails. Response format mirrors the Ethereum JSON-RPC standard.","failureModes":["Invalid RPC method name returns JSON-RPC error code -32601 (method not found)","Malformed params array returns error code -32602 (invalid params)","Network congestion or node unavailability may cause timeouts","Payment failure via x402 protocol blocks the request before it reaches the node","Querying a non-existent block hash or transaction hash returns null result","Rate limiting if too many calls are made in rapid succession"],"whenToPreferThis":"Choose this endpoint when you need direct, low-latency JSON-RPC access to the Optimism (OP Mainnet) L2 blockchain and want pay-per-call pricing without a subscription. Ideal for agents that make sporadic or unpredictable numbers of RPC calls and want to avoid over-provisioning. Prefer this over self-hosted nodes when you need zero infrastructure overhead and over subscription RPC providers when usage is too low to justify a monthly plan.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:41:16.367Z","isFirstParty":false,"canonicalSlug":"phantom-api-optimism-rpc-endpoint-29d012cf"}