# Phantom API — Sonic RPC Endpoint

> Phantom API — Sonic 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-09-14).

Provides JSON-RPC access to the Sonic blockchain network for querying on-chain data, interacting with smart contracts, and reading Web3 state.

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/sonic/rpc
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/phantom-api-sonic-rpc-endpoint-bae8bde1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mHxeRUmgwe_7EVWLYcqdk

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-sonic-rpc-endpoint-bae8bde1 -d '<json body>'
```

Example prompt: Can you fetch the latest block number on the Sonic blockchain using eth_blockNumber?

## When to prefer this

Choose this endpoint when you specifically need RPC access to the Sonic blockchain network and want pay-per-call pricing via x402 without a long-term subscription. Prefer this over general Ethereum RPC providers when Sonic-specific network data is required.

## Known failure modes

- Invalid or unsupported JSON-RPC method returns an error code
- Malformed params array causes parse or invalid params error
- Payment not included or insufficient USDC causes 402 Payment Required response
- Network congestion on Sonic chain may cause timeouts
- Contract address not found returns null result

## 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

A standard JSON-RPC response object containing the result field with blockchain data (block info, balances, receipts, contract return values, etc.) or an error object with code and message if the call fails.

## 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-sonic-rpc-endpoint-bae8bde1/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)
