# Pocket Network Solana Mainnet JSON-RPC

> Pocket Network Solana Mainnet 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 Solana mainnet-beta via the Pocket Network decentralised node supplier set, billed per-request in USDC with no API key required.

## Facts

- Endpoint: POST https://agent.pocket.network/v1/solana?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-solana-mainnet-json-rpc-956f86ee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WklJm4FG9vFauKItqTizD

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-solana-mainnet-json-rpc-956f86ee -d '<json body>'
```

Example prompt: What's the current SOL balance of wallet address 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM on Solana mainnet using Pocket Network's decentralised RPC?

## When to prefer this

Choose this endpoint when you need permissionless, keyless, pay-per-use read access to Solana mainnet-beta JSON-RPC without managing API accounts or subscriptions. Prefer it over centralised RPC providers (Alchemy, QuickNode, Helius) when you want censorship-resistant, decentralised node diversity or when operating in an agent context that can pay in USDC per call via x402. Best suited for sporadic or unpredictable query volumes where a monthly subscription is wasteful.

## Known failure modes

- Invalid method name returns JSON-RPC error code -32601 (Method not found)
- Malformed params returns error code -32602 (Invalid params)
- Account or transaction not found returns null result
- Write methods (sendTransaction, etc.) rejected — endpoint is read-only
- Insufficient USDC balance causes 402 Payment Required before request is processed
- Requested slot pruned from ledger returns 'Block not available' error
- Rate or payment gateway timeout returns 5xx HTTP error

## How this service works

Read-only JSON-RPC access to Solana mainnet-beta, served by the Pocket Network decentralised supplier set. Pay per request in USDC; no account, no API key.

## Output

Returns a standard Solana JSON-RPC response object containing a 'result' field with the requested data (e.g. account info, balance in lamports, block details, transaction status) or an 'error' field with code and message if the request fails. The exact structure mirrors the official Solana JSON-RPC specification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "method": {
   "type": "string",
   "examples": [
    "getAccountInfo",
    "getBalance",
    "getBlock",
    "getBlockCommitment",
    "getBlockHeight",
    "getBlockProduction",
    "getBlockTime",
    "getBlocks",
    "getBlocksWithLimit",
    "getClusterNodes",
    "getEpochInfo",
    "getEpochSchedule",
    "getFeeForMessage",
    "getFirstAvailableBlock",
    "getGenesisHash",
    "getHealth",
    "getHighestSnapshotSlot",
    "getIdentity",
    "getInflationGovernor",
    "getInflationRate",
    "getInflationReward",
    "getLatestBlockhash",
    "getLeaderSchedule",
    "getMaxRetransmitSlot",
    "getMaxShredInsertSlot",
    "getMinimumBalanceForRentExemption",
    "getMultipleAccounts",
    "getProgramAccounts",
    "getRecentPerformanceSamples",
    "getRecentPrioritizationFees",
    "getSignatureStatuses",
    "getSignaturesForAddress",
    "getSlot",
    "getSlotLeader",
    "getSlotLeaders",
    "getStakeMinimumDelegation",
    "getTokenAccountBalance",
    "getTokenAccountsByDelegate",
    "getTokenAccountsByOwner",
    "getTokenLargestAccounts",
    "getTokenSupply",
    "getTransaction",
    "getTransactionCount",
    "getVersion",
    "getVoteAccounts",
    "isBlockhashValid",
    "minimumLedgerSlot",
    "simulateTransaction"
   ],
   "description": "JSON-RPC read method, e.g. getAccountInfo"
  },
  "params": {
   "description": "Parameters per the Solana JSON-RPC spec"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

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