# BlockRun.AI Optimism JSON-RPC Passthrough

> BlockRun.AI Optimism JSON-RPC Passthrough is a paid API for AI agents from blockrun.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-12).

Routes standard JSON-RPC calls to the Optimism network via Tatum's multi-chain gateway, pay-per-call in USDC with no API key required.

## Facts

- Endpoint: POST https://blockrun.ai/api/v1/rpc/optimism?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockrun-ai-optimism-json-rpc-passthrough-714ecdcf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R9JM2VOcdNDUkvGSsOPFE

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 blockrun-ai-optimism-json-rpc-passthrough-714ecdcf -d '<json body>'
```

Example prompt: Can you check the current ETH balance of wallet 0xAbC...123 on Optimism by calling eth_getBalance via the BlockRun RPC gateway — I'll pay per call in USDC, no API key needed.

## When to prefer this

Choose this endpoint when you need pay-per-call access to the Optimism network without managing an API key or committing to a subscription — ideal for agents that make sporadic or cost-sensitive RPC calls and want to pay in USDC on-chain via x402. Prefer it over self-hosted nodes or key-gated providers when simplicity and micro-payment billing matter.

## Known failure modes

- Invalid JSON-RPC method returns error code -32601 (method not found)
- Malformed params returns error code -32602 (invalid params)
- Insufficient USDC balance results in 402 Payment Required before the call is forwarded
- Network congestion or Tatum gateway downtime causes timeout or 503 error
- Sending a transaction with wrong nonce returns execution revert error

## How this service works

Multi-chain JSON-RPC passthrough fronted by BlockRun, powered by Tatum's gateway across 40 chains (Ethereum, Base, Solana, Polygon, BSC, Arbitrum, Optimism, Avalanche, Bitcoin, Sui, and more). One endpoint, every chain, pay-per-call in USDC, no API key. $0.002 per call (or per element of a JSON-RPC batch). Network: Optimism.

## Output

A standard JSON-RPC 2.0 response object containing the result field with chain data (block info, balance in wei, transaction receipt, contract return value, etc.) or an error object with code and message if the call fails.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "id": {
   "type": [
    "string",
    "number"
   ],
   "description": "JSON-RPC id"
  },
  "method": {
   "type": "string",
   "description": "Chain RPC method, e.g. eth_blockNumber, eth_call, eth_getBalance (EVM) or getSlot, getAccountInfo (Solana)."
  },
  "params": {
   "type": "array",
   "description": "Method-specific params."
  },
  "jsonrpc": {
   "type": "string",
   "description": "\"2.0\""
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockrun-ai-optimism-json-rpc-passthrough-714ecdcf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from blockrun.ai](https://www.zero.xyz/host/blockrun.ai/llms.txt)
