# Pocket Network zkSync Era JSON-RPC

> Pocket Network zkSync Era 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-03).

Provides read-only Ethereum-compatible JSON-RPC access to the zkSync Era ZK rollup via Pocket Network's decentralised node infrastructure, paid per-request in USDC.

## Facts

- Endpoint: POST https://agent.pocket.network/v1/zksync-era?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pocket-network-zksync-era-json-rpc-6b921ff6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N3j9bUO_oXmFTUjCQ8fb4

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-zksync-era-json-rpc-6b921ff6 -d '<json body>'
```

Example prompt: What's the current ETH balance of wallet 0xAbC...123 on zkSync Era? Use the eth_getBalance RPC method and give me the result in wei.

## When to prefer this

Choose this endpoint when you need permissionless, keyless read access to zkSync Era blockchain data and are comfortable paying per-request in USDC via the x402 protocol. It is ideal for agents that need to query zkSync Era state without managing API keys or node infrastructure, and when decentralisation and censorship resistance of the supplier set matter. Prefer alternatives (e.g. Alchemy, Infura) if you need write access, WebSocket subscriptions, or zkSync-specific extended RPC methods not in the standard Ethereum set.

## Known failure modes

- Invalid JSON-RPC method name returns error code -32601 (Method not found)
- Write methods (eth_sendRawTransaction) rejected as endpoint is read-only
- Malformed params returns error -32602 (Invalid params)
- Non-existent block hash or tx hash returns null result
- Payment failure or insufficient USDC balance blocks the request with HTTP 402
- Rate limits from the Pocket Network supplier set may cause transient failures

## How this service works

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

## Output

A standard Ethereum JSON-RPC response object containing the result field populated with the requested blockchain data (balance in wei, block object, transaction object, receipt, log array, gas estimate in hex, etc.) or an error object with code and message if the call fails.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "method": {
   "type": "string",
   "examples": [
    "eth_accounts",
    "eth_blockNumber",
    "eth_call",
    "eth_chainId",
    "eth_coinbase",
    "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_getStorageAt",
    "eth_getTransactionByBlockHashAndIndex",
    "eth_getTransactionByBlockNumberAndIndex",
    "eth_getTransactionByHash",
    "eth_getTransactionCount",
    "eth_getTransactionReceipt",
    "eth_getUncleCountByBlockHash",
    "eth_getUncleCountByBlockNumber",
    "eth_maxPriorityFeePerGas",
    "eth_newBlockFilter",
    "eth_newFilter",
    "eth_newPendingTransactionFilter",
    "eth_syncing",
    "eth_uninstallFilter",
    "net_listening",
    "net_peerCount",
    "net_version",
    "web3_clientVersion"
   ],
   "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": "zksync-era",
   "provenance": "third-party-supplier",
   "schemaCheck": "passed"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pocket-network-zksync-era-json-rpc-6b921ff6/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)
