# QuickNode JSON-RPC Proxy — Linea Mainnet

> QuickNode JSON-RPC Proxy — Linea Mainnet is a paid API for AI agents from x402.quicknode.com, paid per call via x402, $10/call, status unknown (last checked 2026-09-14).

Proxies JSON-RPC calls to the Linea mainnet blockchain, enabling reads and writes via standard Ethereum-compatible RPC methods.

## Facts

- Endpoint: POST https://x402.quicknode.com/linea-mainnet/
- Price: $10/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quicknode-1f613e5d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_c1tngU4kBElwgXk_4EJa0

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 quicknode-1f613e5d -d '<json body>'
```

Example prompt: What's the latest block number on Linea mainnet? Use eth_blockNumber via the QuickNode Linea mainnet JSON-RPC endpoint.

## When to prefer this

Use this endpoint when you need reliable, low-latency JSON-RPC access to the Linea mainnet blockchain — particularly for reading chain state, calling smart contracts, or broadcasting signed transactions on Linea (an Ethereum L2 by ConsenSys). Prefer this over generic Ethereum endpoints when the target contract or asset specifically lives on Linea mainnet.

## Known failure modes

- Invalid JSON-RPC method name returns error code -32601 method not found
- Malformed params array returns error code -32602 invalid params
- Network congestion or node unavailability returns 503 or timeout
- Insufficient payment ($10 USDC required) results in 402 Payment Required
- Calling state-mutating methods without a signed transaction returns execution revert

## How this service works

JSON-RPC proxy — linea-mainnet

## Output

Returns a standard JSON-RPC 2.0 response object containing either a result field with the requested blockchain data (block info, balance, call output, etc.) or an error field with code and message if the call failed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "jsonrpc",
  "method"
 ],
 "properties": {
  "id": {
   "type": [
    "number",
    "string"
   ],
   "description": "Request identifier"
  },
  "method": {
   "type": "string",
   "description": "JSON-RPC method name (e.g., eth_blockNumber, eth_call)"
  },
  "params": {
   "type": "array",
   "description": "Method parameters"
  },
  "jsonrpc": {
   "type": "string",
   "const": "2.0"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "id": {
   "type": [
    "number",
    "string"
   ]
  },
  "error": {
   "type": "object",
   "properties": {
    "code": {
     "type": "integer"
    },
    "message": {
     "type": "string"
    }
   }
  },
  "result": {
   "description": "RPC result (type varies by method)"
  },
  "jsonrpc": {
   "type": "string",
   "const": "2.0"
  }
 }
}
```

## More

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