# QuickNode JSON-RPC Proxy — Optimism Mainnet

> QuickNode JSON-RPC Proxy — Optimism Mainnet is a paid API for AI agents from x402.quicknode.com, paid per call via x402, $10/call, status unknown (last checked 2026-09-14).

Proxies JSON-RPC 2.0 calls to the Optimism (OP) mainnet blockchain, enabling on-chain reads and writes via standard Ethereum JSON-RPC methods.

## Facts

- Endpoint: POST https://x402.quicknode.com/optimism-mainnet/
- Price: $10/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quicknode-aeb4d9bb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NhJUHoEvdeAhyRgZDbGL4

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 quicknode-aeb4d9bb -d '<json body>'
```

Example prompt: Can you call eth_getBalance on Optimism mainnet for address 0xAbCd1234... using the QuickNode RPC proxy and tell me the current balance?

## When to prefer this

Use this endpoint when you need to interact with the Optimism (OP) mainnet specifically — reading on-chain state, calling smart contracts, broadcasting transactions, or fetching blocks/receipts — and want a reliable, pay-per-call QuickNode RPC node without managing your own infrastructure. Prefer this over Ethereum mainnet endpoints when your target contracts or tokens are deployed on the Optimism L2 network.

## Known failure modes

- Invalid JSON-RPC method name returns error code -32601 Method not found
- Malformed params array returns error code -32602 Invalid params
- Payment failure (insufficient USDC) results in 402 Payment Required before execution
- Network congestion or node unavailability returns 503 or timeout
- Calling a non-existent contract address returns empty result rather than error

## How this service works

JSON-RPC proxy — optimism-mainnet

## Output

Returns a standard JSON-RPC 2.0 response object containing the result of the requested method (e.g. block number, balance in hex wei, transaction receipt, contract call output) or a JSON-RPC error object with code and message if the call fails.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "jsonrpc",
  "method"
 ],
 "properties": {
  "id": {
   "type": [
    "number",
    "string"
   ],
   "description": "Request identifier"
  },
  "method": {
   "type": "string",
   "description": "JSON-RPC method name (e.g., eth_blockNumber, eth_call)"
  },
  "params": {
   "type": "array",
   "description": "Method parameters"
  },
  "jsonrpc": {
   "type": "string",
   "const": "2.0"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "id": {
   "type": [
    "number",
    "string"
   ]
  },
  "error": {
   "type": "object",
   "properties": {
    "code": {
     "type": "integer"
    },
    "message": {
     "type": "string"
    }
   }
  },
  "result": {
   "description": "RPC result (type varies by method)"
  },
  "jsonrpc": {
   "type": "string",
   "const": "2.0"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/quicknode-aeb4d9bb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.quicknode.com](https://www.zero.xyz/host/x402.quicknode.com/llms.txt)
