# QuantaFlow x402 API Gateway – Infura Optimism Mainnet

> QuantaFlow x402 API Gateway – Infura Optimism 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-24).

Proxies requests to Infura's Optimism Mainnet JSON-RPC endpoint via the x402 micropayment protocol, charging $0.01 USDC per call.

## Facts

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

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-infura-optimism-mainnet-589d3afe -d '<json body>'
```

Example prompt: Can you check the latest block number on Optimism Mainnet using the Infura RPC gateway — just forward an eth_blockNumber JSON-RPC call and tell me the result?

## When to prefer this

Choose this endpoint when you need pay-per-use, keyless access to Optimism Mainnet JSON-RPC (Infura) without managing API subscriptions or rate-limit tiers. Ideal for AI agents that make infrequent or unpredictable Optimism RPC calls and want to settle costs automatically via x402 micropayments in USDC.

## Known failure modes

- Insufficient USDC balance causes payment failure and request is rejected before forwarding
- Invalid JSON-RPC method or malformed body results in upstream Infura error passed through
- Wrong path causes routing failure or 404 from upstream
- Optimism node downtime or Infura outage returns upstream error
- Network latency or Vercel cold-start may add variable delay

## How this service works

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

## Output

The raw upstream Optimism Mainnet JSON-RPC response body (e.g. block data, transaction receipts, contract call results, account balances) is passed through directly after the x402 micropayment of $0.01 USDC is settled. The content type mirrors whatever Infura returns.

## 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-infura-optimism-mainnet-589d3afe/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)
