---
title: "Solana JSON-RPC"
method: POST
path: "/v1/solana"
tags: ["blockchain"]
---

# Solana JSON-RPC

`POST /v1/solana`

## Request

- Base URL: `https://agent.pocket.network`
- URL: `https://agent.pocket.network/v1/solana`
- Auth: none required

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.

## Request body

- object
  - `method` string, required: JSON-RPC read method, e.g. getAccountInfo
  - `params` unknown

## Response `200`

The upstream response, served after payment settles.

- object: JSON-RPC 2.0 response envelope. Exactly one of `result` or `error` is present. `result` takes the shape the called method defines per the Solana JSON-RPC specification; most account and block reads return an object with `context` (the slot) and `value`.
  - `jsonrpc` string: The protocol version, always "2.0"
  - `id` unknown
  - `result` unknown
  - `error` object: Present instead of `result` when the call failed
    - `code` integer: A JSON-RPC 2.0 error code
    - `message` string
    - `data` unknown

## Other responses

- `400`: Malformed request.
- `402`: Payment required. The x402 v2 terms are in the PAYMENT-REQUIRED header and, identically, in this body; sign the chosen option and retry with the PAYMENT-SIGNATURE header. The receipt arrives in PAYMENT-RESPONSE.
- `503`: This service is not currently available to serve.

---

[API](https://skmtc.dev/pocket/apis/pocket-agentic-portal.md) · [All operations](https://skmtc.dev/pocket/apis/pocket-agentic-portal/llms.txt) · [OpenAPI document](https://skmtc.dev/pocket/apis/pocket-agentic-portal/revisions/96d2176db014?raw)
