# httpay.xyz Optimism RPC Gateway

> httpay.xyz Optimism RPC Gateway is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Proxies JSON-RPC calls to the Optimism (OP Mainnet) Ethereum-compatible blockchain node via a pay-per-call HTTP gateway

## Facts

- Endpoint: POST https://httpay.xyz/api/gateway/eth-optimism/%7B*path%7D/*
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-xyz-b2763b20
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B7HY20mqdFaYsm4-MJUf_

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 httpay-xyz-b2763b20 -d '<json body>'
```

Example prompt: Send an eth_getBalance RPC call for address 0xAbC123... on the Optimism mainnet and return the result in wei.

## When to prefer this

Use this endpoint when an AI agent needs to query Optimism (OP Mainnet) blockchain state — contract calls, balances, transactions, blocks — without managing its own RPC node infrastructure, and is willing to pay per call via x402/USDC micropayment.

## Known failure modes

- Invalid JSON-RPC method returns RPC error object
- Insufficient USDC payment results in 402 Payment Required
- Malformed request body returns 400 Bad Request
- Optimism node unavailable returns 503 or gateway error
- Invalid address format causes RPC parse error

## How this service works

API Gateway: Optimism RPC

## Output

Standard Ethereum JSON-RPC response object for the requested method, including jsonrpc version, id, and result (or error) fields — e.g. balance in hex wei, transaction receipt object, block data, or contract call return value.

## More

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