# Pocket Network NEAR Protocol JSON-RPC

> Pocket Network NEAR Protocol 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 JSON-RPC access to NEAR Protocol mainnet via Pocket Network's decentralised node infrastructure, pay-per-request at $0.005 USDC.

## Facts

- Endpoint: POST https://agent.pocket.network/v1/near?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-near-protocol-json-rpc-f861627d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_clDHjmErS0ft-4Yz1nYLG

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-near-protocol-json-rpc-f861627d -d '<json body>'
```

Example prompt: Can you query the NEAR mainnet RPC and get me the current status and latest block height of the NEAR Protocol network?

## When to prefer this

Choose this endpoint when you need read-only access to NEAR Protocol mainnet data — account balances, transaction status, block data, validator info, or smart contract state — without requiring an API key or account setup. It is particularly suitable for AI agents that need pay-per-use access via USDC x402 payments without subscription overhead. Prefer over self-hosted nodes when you need instant, decentralised, censorship-resistant access backed by Pocket Network's distributed supplier set.

## Known failure modes

- Invalid JSON-RPC method name returns method not found error
- Malformed or missing params returns invalid params error
- Non-existent account or block ID returns unknown block or unknown account error
- Insufficient USDC payment results in 402 Payment Required response
- Network congestion may cause timeout on slow node responses
- Querying pruned historical state may return data not available error

## How this service works

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

## Output

Returns a JSON-RPC response conforming to the NEAR Protocol RPC specification, containing the requested data such as block details, account state, transaction outcomes, validator sets, network status, gas prices, or smart contract view call results depending on the method called.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "method": {
   "type": "string",
   "examples": [
    "EXPERIMENTAL_changes",
    "EXPERIMENTAL_changes_in_block",
    "EXPERIMENTAL_congestion_level",
    "EXPERIMENTAL_genesis_config",
    "EXPERIMENTAL_light_client_block_proof",
    "EXPERIMENTAL_light_client_proof",
    "EXPERIMENTAL_maintenance_windows",
    "EXPERIMENTAL_protocol_config",
    "EXPERIMENTAL_receipt",
    "EXPERIMENTAL_split_storage_info",
    "EXPERIMENTAL_tx_status",
    "EXPERIMENTAL_validators_ordered",
    "block",
    "changes",
    "chunk",
    "client_config",
    "gas_price",
    "genesis_config",
    "health",
    "light_client_proof",
    "maintenance_windows",
    "network_info",
    "next_light_client_block",
    "query",
    "status",
    "tx",
    "validators"
   ],
   "description": "JSON-RPC read method, e.g. query"
  },
  "params": {
   "description": "Parameters per the NEAR RPC spec (positional or named)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "id": "dontcare",
   "result": {
    "gas_price": "100000000"
   },
   "jsonrpc": "2.0"
  },
  "portal": {
   "serviceId": "near",
   "provenance": "third-party-supplier",
   "schemaCheck": "passed"
  }
 }
}
```

## More

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