# Pocket Network – Avalanche C-Chain JSON-RPC

> Pocket Network – Avalanche C-Chain JSON-RPC is a paid API for AI agents from agent.pocket.network, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Provides read-only Ethereum-compatible JSON-RPC access to the Avalanche C-Chain via Pocket Network's decentralised node supplier set, billed per-request in USDC.

## Facts

- Endpoint: POST https://agent.pocket.network/v1/avax?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pocket-network-avalanche-c-chain-json-rpc-49fee318
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZlpH75LFIZmiyPaUXWXMk

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 pocket-network-avalanche-c-chain-json-rpc-49fee318 -d '<json body>'
```

Example prompt: What's the current AVAX balance of wallet address 0xAbCd...1234 on the Avalanche C-Chain? Use the Pocket Network RPC — call eth_getBalance with the latest block tag.

## When to prefer this

Choose this endpoint when you need trustless, decentralised read access to Avalanche C-Chain without provisioning an API key or account — ideal for agents making ad-hoc or low-volume queries billed per-call in USDC. Prefer it over centralised RPC providers (Infura, Alchemy) when censorship-resistance or decentralisation of the node layer matters, and over Pocket's other chain endpoints when the target chain is specifically Avalanche C-Chain (not Ethereum mainnet, Arbitrum, Optimism, etc.).

## Known failure modes

- Invalid or unsupported method name returns a JSON-RPC error code -32601
- Malformed params cause a -32602 invalid params error
- Write methods (eth_sendRawTransaction, eth_sendTransaction) are not supported — returns error as endpoint is read-only
- Node temporarily unavailable from supplier set returns HTTP 503 or timeout
- Insufficient USDC balance / failed x402 payment returns HTTP 402 Payment Required
- Rate limiting if per-request payment not honoured

## How this service works

Pay-per-call access to Pocket Network services. No account, no API key.

## Output

A JSON-RPC response object containing the 'result' field populated with the requested on-chain data (balance in wei, block object, transaction receipt, log array, hex-encoded contract return value, etc.) or a JSON-RPC 'error' object if the call fails.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "method": {
   "type": "string",
   "examples": [
    "eth_blockNumber",
    "eth_call",
    "eth_chainId",
    "eth_coinbase",
    "eth_createAccessList",
    "eth_estimateGas",
    "eth_feeHistory",
    "eth_gasPrice",
    "eth_getBalance",
    "eth_getBlockByHash",
    "eth_getBlockByNumber",
    "eth_getBlockReceipts",
    "eth_getBlockTransactionCountByHash",
    "eth_getBlockTransactionCountByNumber",
    "eth_getCode",
    "eth_getFilterChanges",
    "eth_getFilterLogs",
    "eth_getLogs",
    "eth_getProof",
    "eth_getStorageAt",
    "eth_getTransactionByBlockHashAndIndex",
    "eth_getTransactionByBlockNumberAndIndex",
    "eth_getTransactionByHash",
    "eth_getTransactionCount",
    "eth_getTransactionReceipt",
    "eth_getUncleByBlockHashAndIndex",
    "eth_getUncleByBlockNumberAndIndex",
    "eth_getUncleCountByBlockHash",
    "eth_getUncleCountByBlockNumber",
    "eth_maxPriorityFeePerGas",
    "eth_newBlockFilter",
    "eth_newFilter",
    "eth_newPendingTransactionFilter",
    "eth_syncing",
    "eth_uninstallFilter",
    "net_listening",
    "net_peerCount",
    "net_version",
    "web3_clientVersion",
    "web3_sha3"
   ],
   "description": "JSON-RPC read method, e.g. eth_getBalance"
  },
  "params": {
   "description": "Parameters per the Ethereum JSON-RPC spec"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "id": 1,
   "result": false,
   "jsonrpc": "2.0"
  },
  "portal": {
   "serviceId": "avax",
   "provenance": "third-party-supplier",
   "schemaCheck": "passed"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pocket-network-avalanche-c-chain-json-rpc-49fee318/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent.pocket.network](https://www.zero.xyz/host/agent.pocket.network/llms.txt)
