{"uid":"cap_4z8mZ1_D8sjiN533iXena","slug":"quantaflow-x402-api-gateway-alchemy-starknet-mainnet-3a9ec213","name":"QuantaFlow x402 API Gateway — Alchemy StarkNet Mainnet","description":"Every request, a quantum of value. x402 protocol-based payment endpoint for web3/DeFi tools.","url":"https://quanta-roan.vercel.app/api/service/alchemy-starknet-mainnet?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"body":{"type":"string","description":"Optional JSON body forwarded to POST requests."},"path":{"type":"string","description":"Path below the selected upstream origin."},"query":{"type":"object"},"method":{"enum":["GET","POST"],"type":"string"}}},"responseSchema":{"description":"The upstream response body and content type are passed through after successful payment."},"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_SvhKZiKG6ja0jNBVHD8-_","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":"Proxies requests to the Alchemy StarkNet Mainnet RPC/API through an x402 micropayment-gated gateway, charging $0.01 USDC per call.","exampleAgentPrompt":"Look up the latest block on StarkNet mainnet using Alchemy — I need the block hash and timestamp for block number 500000.","exampleUseCases":[{"title":"StarkNet smart contract state read","prompt":"Query the StarkNet mainnet contract at address 0x04... to get the current token balance for my wallet — use the Alchemy StarkNet endpoint."},{"title":"Fetch StarkNet transaction receipt","prompt":"Get me the transaction receipt for StarkNet mainnet tx hash 0xabc123... so I can confirm it was accepted on-chain."},{"title":"StarkNet DeFi protocol data fetch","prompt":"Pull the current liquidity pool reserves from the StarkNet mainnet DEX contract at 0x05... via Alchemy so I can calculate the current swap rate."}],"resultDescription":"The raw upstream response from Alchemy's StarkNet Mainnet API is passed through directly after successful x402 micropayment verification — including JSON-encoded blockchain data such as block info, transaction receipts, contract call results, or RPC method responses, along with the original content type.","failureModes":["Payment failure: insufficient USDC balance or x402 payment not accepted — gateway returns 402 Payment Required","Invalid path: upstream Alchemy endpoint not found for the specified path — returns 404 or upstream error","Malformed JSON body: invalid JSON in the body field causes upstream rejection","RPC method error: StarkNet RPC returns an error (e.g. contract not found, invalid block number) passed through from Alchemy","Rate limiting: Alchemy upstream rate limit exceeded — returns 429 or upstream throttle response","Network timeout: StarkNet mainnet node unresponsive — gateway may return 504 or timeout error"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call access to Alchemy's StarkNet Mainnet RPC without a subscription API key, using x402 USDC micropayments. Ideal for agents that need occasional or low-volume StarkNet data queries (block data, contract calls, transaction lookups) and want to pay only for what they use at $0.01 per call rather than maintaining an Alchemy account.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T00:45:58.411Z","isFirstParty":false,"canonicalSlug":"quantaflow-x402-api-gateway-alchemy-starknet-mainnet-3a9ec213"}