{"uid":"cap_SapzfsV5RDpWRxl_nIofy","slug":"quantaflow-x402-api-gateway-alchemy-optimism-mainnet-19fdfc9b","name":"QuantaFlow x402 API Gateway — Alchemy Optimism 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-opt-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_HSvPWyCTq4bNzj1uSYf19","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 Alchemy's Optimism Mainnet RPC/API through an x402 micropayment-gated gateway, charging $0.01 USDC per call.","exampleAgentPrompt":"Fetch the latest block number and gas price on Optimism Mainnet through the QuantaFlow Alchemy gateway — use the /v2 path with an eth_blockNumber JSON-RPC call.","exampleUseCases":[{"title":"Check token balance on Optimism","prompt":"Query the USDC token balance for wallet address 0xAbC...123 on Optimism Mainnet using the Alchemy gateway — call the alchemy_getTokenBalances method at the /v2 path."},{"title":"Fetch transaction receipt for DeFi audit","prompt":"Get the full transaction receipt for tx hash 0xDef...456 on Optimism Mainnet via the Alchemy gateway, using eth_getTransactionReceipt at the /v2 path."},{"title":"Monitor smart contract events","prompt":"Pull the latest logs for the Uniswap V3 pool contract 0x789...abc on Optimism Mainnet using eth_getLogs through the QuantaFlow Alchemy gateway at the /v2 path."}],"resultDescription":"The raw upstream response from Alchemy's Optimism Mainnet API is passed through directly, including the JSON-RPC result body and content type. Typical responses include blockchain data such as block info, transaction receipts, token balances, contract states, or event logs.","failureModes":["Payment failure: insufficient USDC balance or x402 payment not included — gateway returns 402 Payment Required","Invalid path: unrecognized or malformed Alchemy API path — upstream returns 404 or 400","Invalid JSON-RPC method: Alchemy returns an error object with code and message","Rate limiting: Alchemy upstream rate limit exceeded — returns 429","Network error: Optimism Mainnet node unavailable — returns 503 or timeout","Malformed request body: JSON parse error forwarded from upstream"],"whenToPreferThis":"Choose this endpoint when you need pay-per-use access to Alchemy's Optimism Mainnet APIs without committing to a subscription or managing API keys. Ideal for low-frequency or agent-driven queries where per-call micropayment ($0.01 USDC via x402) is preferable to a monthly plan. Best suited for agents already operating in the x402 payment ecosystem querying Optimism L2 on-chain data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:43:04.885Z","isFirstParty":false,"canonicalSlug":"quantaflow-x402-api-gateway-alchemy-optimism-mainnet-19fdfc9b"}