{"uid":"cap_j2WEOjFvw37EFqOo4NAOh","slug":"phantom-api-starknet-rpc-c8f8b315","name":"Phantom API — StarkNet RPC","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/starknet/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_iwrgpl14PajL-kQhsR8kn","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 pay-per-call JSON-RPC gateway to the StarkNet blockchain network, enabling queries and interactions with StarkNet smart contracts and chain state.","exampleAgentPrompt":"Can you call the StarkNet RPC method starknet_getBlockWithTxHashes with the block tag 'latest' and return the block data?","exampleUseCases":[{"title":"Check latest StarkNet block","prompt":"Fetch the latest block from StarkNet using starknet_getBlockWithTxs so I can see what transactions were just confirmed."},{"title":"Read StarkNet contract storage","prompt":"Query the StarkNet RPC for the storage value at slot 0x1 in contract 0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7 on the latest block."},{"title":"Get StarkNet transaction status","prompt":"Look up the status of StarkNet transaction 0x5c3a8e54a5b4b5a3d3c2e1f0a9b8c7d6e5f4a3b2c1d0e9f8a7b6c5d4e3f2a1 using starknet_getTransactionByHash."}],"resultDescription":"A JSON-RPC response object conforming to the StarkNet RPC specification, containing the result field with requested blockchain data (blocks, transactions, contract storage, account info, etc.) or an error object with code and message if the call fails.","failureModes":["Invalid RPC method name returns method not found error","Malformed params array returns invalid params error","Non-existent block or transaction hash returns resource not found","Payment failure (402) if USDC balance is insufficient","Network timeout if StarkNet node is slow or congested"],"whenToPreferThis":"Choose this endpoint when you need fast, pay-per-call access to StarkNet-specific RPC methods without committing to a subscription. Ideal for agents that need occasional StarkNet data reads, smart contract state inspection, or transaction lookups on the StarkNet Layer 2 network specifically, rather than EVM-compatible chains.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:55:51.877Z","isFirstParty":false,"canonicalSlug":"phantom-api-starknet-rpc-c8f8b315"}