{"uid":"cap_6nJ7ItjfcO0wmAK5-a_hw","slug":"phantom-api-zksync-rpc-endpoint-2bad3e1c","name":"Phantom API — ZKsync 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/zksync/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_y8Tqu_WaxgzXIGM1TKYqS","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 a JSON-RPC interface to the ZKsync network, enabling agents to query blockchain state, interact with smart contracts, and broadcast transactions on ZKsync via pay-per-call.","exampleAgentPrompt":"Can you check the current ETH balance for wallet address 0xAbC...123 on ZKsync Era using the eth_getBalance RPC method?","exampleUseCases":[{"title":"Check ZKsync wallet balance","prompt":"What's the current ETH balance for 0xDead...Beef on ZKsync Era? Use eth_getBalance with the latest block."},{"title":"Fetch ZKsync transaction receipt","prompt":"Look up the transaction receipt for tx hash 0xabc123...def on ZKsync — I need to know if it confirmed and what gas was used."},{"title":"Read ZKsync smart contract state","prompt":"Call the totalSupply function on ZKsync smart contract 0x999...aaa using eth_call so I can see how many tokens are in circulation."}],"resultDescription":"Returns a standard JSON-RPC response object containing the result field with blockchain data (e.g. balance in hex wei, block object, transaction receipt, call return value) or an error object with code and message if the call fails.","failureModes":["Invalid RPC method name returns JSON-RPC error with code -32601","Malformed params array causes -32602 invalid params error","Payment not included or insufficient USDC returns 402 Payment Required","ZKsync node unavailable returns 503 or connection timeout","Querying a non-existent transaction hash returns null result","Contract call reverts return execution error in JSON-RPC response"],"whenToPreferThis":"Choose this endpoint when you need direct, low-latency RPC access to ZKsync Era specifically, and want pay-per-call pricing without a subscription. Prefer it over general Ethereum RPC endpoints when the target contract or wallet is deployed on ZKsync. Use when you need ZKsync-specific RPC methods like zks_getL1BatchNumber or zks_estimateFee that aren't available on standard Ethereum nodes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T12:41:07.758Z","isFirstParty":false,"canonicalSlug":"phantom-api-zksync-rpc-endpoint-2bad3e1c"}