# QuantaFlow x402 API Gateway — Alchemy XLayer Mainnet

> QuantaFlow x402 API Gateway — Alchemy XLayer Mainnet is a paid API for AI agents from quanta-roan.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-13).

Proxies requests to the Alchemy XLayer Mainnet node via x402 micropayment-gated API gateway for web3/DeFi interactions

## Facts

- Endpoint: POST https://quanta-roan.vercel.app/api/service/alchemy-xlayer-mainnet?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quantaflow-x402-api-gateway-alchemy-xlayer-mainnet-cebc8757
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1TFj80qirom3PrPioOqSe

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability quantaflow-x402-api-gateway-alchemy-xlayer-mainnet-cebc8757 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Every request, a quantum of value. x402 protocol-based payment endpoint for web3/DeFi tools.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "description": "The upstream response body and content type are passed through after successful payment."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/quantaflow-x402-api-gateway-alchemy-xlayer-mainnet-cebc8757/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quanta-roan.vercel.app](https://www.zero.xyz/host/quanta-roan.vercel.app/llms.txt)
