# Solana API
> Live Solana blockchain data, read straight from a public Solana RPC node — no key, nothing cached. Where EVM chains use 0x addresses, Solana uses base58 keys, and this reads them directly. The balance endpoint returns any wallet's SOL balance (in lamports and SOL) along with the account's program owner, whether it is executable and its rent epoch. The network endpoint returns the live state of the chain: the current epoch and how far through it the cluster is, the absolute slot and block height, the running transactions-per-second, the cumulative transaction count and the node health — Solana runs at thousands of transactions per second. The transactions endpoint returns a wallet's most recent transaction signatures with the slot, block time, success or failure and an explorer link. It reads Solana mainnet live. This is the account-and-network layer every Solana wallet, explorer, dashboard or dapp needs. Live from the chain, nothing stored. Distinct from EVM balance, token and transaction APIs — this is Solana on-chain data. 4 endpoints.

## Authentication
All requests require your oanor API key in the `x-oanor-key` header. Get one at https://www.oanor.com/developer/keys.

```bash
curl -H "x-oanor-key: oanor_live_…" "https://api.oanor.com/solana-api/..."
```

## Pricing
- **Free** (Free) — 10,000 calls/Mo, 3 req/s
- **Starter** ($10/Mo) — 122,000 calls/Mo, 8 req/s
- **Pro** ($24/Mo) — 605,000 calls/Mo, 15 req/s
- **Scale** ($57/Mo) — 3,020,000 calls/Mo, 30 req/s

## Endpoints

### Solana

#### `GET /v1/balance` — A wallet SOL balance

**Parameters:**
- `address` (query, required, string) — Solana address (base58) Example: `GThUX1Atko4tqhN2NaiTazWSeFWMuiUvfFnyJyUghFMJ`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/solana-api/v1/balance?address=GThUX1Atko4tqhN2NaiTazWSeFWMuiUvfFnyJyUghFMJ"
```

**Response:**
```json
{
    "data": {
        "sol": 377.047072,
        "owner": "11111111111111111111111111111111",
        "exists": true,
        "address": "GThUX1Atko4tqhN2NaiTazWSeFWMuiUvfFnyJyUghFMJ",
        "explorer": "https://solscan.io/account/GThUX1Atko4tqhN2NaiTazWSeFWMuiUvfFnyJyUghFMJ",
        "lamports": 377047071711,
        "executable": false,
        "rent_epoch": 1.8446744073709552e+19
    },
    "meta": {
        "timestamp": "2026-06-09T11:38:48.903Z",
        "request_id": "eed4e8db-4d85-4f4e-a479-c33d92328638"
    },
    "status": "ok",
    "message": "Balance retrieved successfully",
    "success": true
}
```

#### `GET /v1/network` — Live network state

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/solana-api/v1/network"
```

**Response:**
```json
{
    "data": {
        "tps": 2789,
        "epoch": 984,
        "health": "ok",
        "slot_index": 232104,
        "block_height": 425320135,
        "absolute_slot": 425320104,
        "slots_in_epoch": 432000,
        "transaction_count": 519257231005,
        "epoch_progress_pct": 53.7
    },
    "meta": {
        "timestamp": "2026-06-09T11:38:49.110Z",
        "request_id": "24272c87-f49f-4b61-92d6-a8272c588329"
    },
    "status": "ok",
    "message": "Network state retrieved successfully",
    "success": true
}
```

#### `GET /v1/transactions` — A wallet recent signatures

**Parameters:**
- `address` (query, required, string) — Solana address (base58) Example: `GThUX1Atko4tqhN2NaiTazWSeFWMuiUvfFnyJyUghFMJ`
- `limit` (query, optional, string) — How many (default 15, max 50) Example: `15`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/solana-api/v1/transactions?address=GThUX1Atko4tqhN2NaiTazWSeFWMuiUvfFnyJyUghFMJ&limit=15"
```

**Response:**
```json
{
    "data": {
        "count": 15,
        "address": "GThUX1Atko4tqhN2NaiTazWSeFWMuiUvfFnyJyUghFMJ",
        "transactions": [
            {
                "memo": null,
                "slot": 425319204,
                "status": "success",
                "explorer": "https://solscan.io/tx/3wdHTvRsrU4g5qaS4Nhx9RkDG9RtxQwCu8SJK5g8pUrLAz5WUn8ipNcgynEo579omGrsfSytryd4pVZtZKF3RRaG",
                "signature": "3wdHTvRsrU4g5qaS4Nhx9RkDG9RtxQwCu8SJK5g8pUrLAz5WUn8ipNcgynEo579omGrsfSytryd4pVZtZKF3RRaG",
                "block_time": 1781004756
            },
            {
                "memo": null,
                "slot": 425315334,
                "status": "success",
                "explorer": "https://solscan.io/tx/2LJsL2ezK1JqpjX4DD7hyFWFtH4mYqcjhiAsLwzSxMzLKoizRMGNUU2H9nMm55jEScnWi5baH2FYcBETV7wcre8Z",
                "signature": "2LJsL2ezK1JqpjX4DD7hyFWFtH4mYqcjhiAsLwzSxMzLKoizRMGNUU2H9nMm55jEScnWi5baH2FYcBETV7wcre8Z",
                "block_time": 1781003215
            },
            {
                "memo": null,
                "slot": 425314983,
                "status": "success",
                "explorer": "https://solscan.io/tx/3bUorqRibttuFfsJhviNPFxAC3dJA2jgzvg1bmsExw8tRokZq5FG24WgW12xT7VeAiF8FwSG5L3NcVUcu8jBgqW5",
                "signature": "3bUorqRibttuFfsJhviNPFxAC3dJA2jgzvg1bmsExw8tRokZq5FG24WgW12xT7VeAiF8FwSG5L3NcVUcu8jBgqW5",
                "block_time": 1781003078
            },
            {
                "memo": null,
                "slot
…(truncated, see openapi.json for full schema)
```

### Meta

#### `GET /v1/meta` — Spec

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/solana-api/v1/meta"
```

**Response:**
```json
{
    "data": {
        "source": "Public Solana RPC (publicnode, live)",
        "service": "solana-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/balance": "A wallet's SOL balance and account info (address=… base58).",
            "GET /v1/network": "Live network state: epoch, slot, block height, TPS, tx count, health.",
            "GET /v1/transactions": "A wallet's recent transaction signatures (address=…, limit up to 50)."
        },
        "description": "Live Solana blockchain data read on-chain via public RPC: any wallet's SOL balance (lamports and SOL) with its program owner, executable flag and rent epoch; live network state (current epoch and progress, absolute slot and block height, running TPS, cumulative transaction count and node health); and a wallet's recent transaction signatures with slot, block time, success/failure and an explorer link. Solana mainnet, live. No key, nothing stored. Distinct from EVM balance, token and transaction APIs — this is Solana on-chain data.",
        "upstream_status": "ok"
    },
    "meta": {
        "timestamp": "2026-06-09T11:38:49.438Z",
        "request_id": "f394666d-16b0-45c7-8527-c1d48b5af4b0"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


---
Marketplace page: https://www.oanor.com/api/solana-api
OpenAPI spec: https://www.oanor.com/api/solana-api/openapi.json
