# Phantom API — Linea RPC Endpoint

> Phantom API — Linea 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-12).

Provides a pay-per-call JSON-RPC gateway to the Linea blockchain network, enabling agents to query on-chain state, submit transactions, and interact with smart contracts.

## Facts

- Endpoint: POST https://phantom-api-omega.vercel.app/api/linea/rpc?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/phantom-api-linea-rpc-endpoint-dc40858b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WtviuR6VMFPdGCUF4PizF

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-linea-rpc-endpoint-dc40858b -d '<json body>'
```

Example prompt: Get me the current ETH balance for wallet address 0xABC123 on the Linea network using eth_getBalance.

## When to prefer this

Choose this endpoint when you need direct RPC access to the Linea (ConsenSys zkEVM L2) network specifically, and want pay-per-call pricing via x402 without committing to a subscription. Ideal for agents that make sporadic on-chain reads or writes to Linea and need low-latency access without managing their own node.

## Known failure modes

- Invalid or unsupported JSON-RPC method returns an error object
- Malformed params array causes parse or invalid params error
- Payment not included or insufficient USDC results in 402 Payment Required
- Network congestion on Linea causes delayed or timed-out responses
- Contract call reverts return an execution revert error
- Rate limiting if too many calls are made in short 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 JSON-RPC response object containing the result of the requested blockchain query — such as hex-encoded balances, block objects, transaction receipts, smart contract return values, or error objects 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-linea-rpc-endpoint-dc40858b/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)
