{"uid":"cap_1TFj80qirom3PrPioOqSe","slug":"quantaflow-x402-api-gateway-alchemy-xlayer-mainnet-cebc8757","name":"QuantaFlow x402 API Gateway — Alchemy XLayer 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-xlayer-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_M6k4oX4cnLBT70NIY7Ljg","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 XLayer Mainnet node via x402 micropayment-gated API gateway for web3/DeFi interactions","exampleAgentPrompt":"Forward a JSON-RPC call to the Alchemy XLayer Mainnet to get the latest block number — use the path '/v2' with method 'eth_blockNumber' and an empty params array in the body.","exampleUseCases":[{"title":"Fetch XLayer account token balance","prompt":"Query the XLayer mainnet for the ERC-20 token balance of wallet address 0xABC...123 using the Alchemy API — send the eth_call to the token contract at path /v2."},{"title":"Submit XLayer mainnet transaction","prompt":"Broadcast a signed raw transaction to the XLayer mainnet via Alchemy — forward it as an eth_sendRawTransaction JSON-RPC call with the signed tx hex in the body."},{"title":"Read XLayer smart contract state","prompt":"Call the read-only 'totalSupply' function on XLayer mainnet smart contract 0xDEF...456 through the Alchemy XLayer gateway using eth_call at path /v2."}],"resultDescription":"The raw upstream response from the Alchemy XLayer Mainnet API is passed through directly, including the response body and content type — typically a JSON-RPC result object containing blockchain data, transaction receipts, or error details.","failureModes":["Payment failure: insufficient USDC balance causes x402 payment rejection before request is forwarded","Upstream error: Alchemy XLayer returns RPC error (invalid method, bad params, reverted tx)","Invalid path: unrecognized path below the upstream origin returns 404 or gateway error","Malformed body: non-JSON or invalid JSON-RPC body forwarded upstream may return parse error","Network timeout: XLayer mainnet or Alchemy infrastructure temporarily unreachable"],"whenToPreferThis":"Choose this endpoint when you need pay-per-call access to Alchemy's XLayer Mainnet RPC without managing a subscription or API key — ideal for agents making occasional or unpredictable numbers of XLayer blockchain queries where a flat subscription is wasteful. Prefer this over direct Alchemy subscriptions for serverless or agent-driven workloads billed via x402 USDC micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T18:47:07.167Z","isFirstParty":false,"canonicalSlug":"quantaflow-x402-api-gateway-alchemy-xlayer-mainnet-cebc8757"}