# Phantom API — Optimism RPC Endpoint

> Phantom API — Optimism RPC Endpoint is a paid API for AI agents from phantom-api-omega.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-13).

Provides pay-per-call JSON-RPC access to the Optimism (OP Mainnet) blockchain network for reading chain state, querying transactions, and interacting with smart contracts.

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/optimism/rpc?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/phantom-api-optimism-rpc-endpoint-29d012cf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KWxfB2uXc1ikVtEoCjvZC

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 phantom-api-optimism-rpc-endpoint-29d012cf -d '<json body>'
```

Example prompt: Can you check the current ETH balance of wallet address 0xAbC...123 on the Optimism network using an eth_getBalance RPC call?

## When to prefer this

Choose this endpoint when you need direct, low-latency JSON-RPC access to the Optimism (OP Mainnet) L2 blockchain and want pay-per-call pricing without a subscription. Ideal for agents that make sporadic or unpredictable numbers of RPC calls and want to avoid over-provisioning. Prefer this over self-hosted nodes when you need zero infrastructure overhead and over subscription RPC providers when usage is too low to justify a monthly plan.

## Known failure modes

- Invalid RPC method name returns JSON-RPC error code -32601 (method not found)
- Malformed params array returns error code -32602 (invalid params)
- Network congestion or node unavailability may cause timeouts
- Payment failure via x402 protocol blocks the request before it reaches the node
- Querying a non-existent block hash or transaction hash returns null result
- Rate limiting if too many calls are made in rapid succession

## How this service works

Lightning-fast access to blockchain data, smart contract insights, and Web3 infrastructure across 57+ networks. Pay-per-call via x402.

## Output

Returns a standard JSON-RPC response object containing the result field populated with the requested on-chain data (e.g. hex-encoded balance, block object, transaction receipt, log array) or an error object if the call fails. Response format mirrors the Ethereum JSON-RPC standard.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "method": {
   "type": "string"
  },
  "params": {
   "type": "array",
   "items": {}
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/phantom-api-optimism-rpc-endpoint-29d012cf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from phantom-api-omega.vercel.app](https://www.zero.xyz/host/phantom-api-omega.vercel.app/llms.txt)
