> ## Documentation Index
> Fetch the complete documentation index at: https://goldrush.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Solana Onchain Data API

> Solana data API - indexed SPL token balances (REST).

> [card] [Full Solana product suite →](https://goldrush.dev/docs/goldrush-solana/overview.md)
>
> GoldRush is the complete data layer for Solana - SPL token balances via the Foundational REST API. Open the dedicated Solana tab for the full product story.

## Overview

> [!TIP]
>
> Solana delivers 400ms block times and sub-cent transaction fees, making it the chain of choice for high-frequency trading, gaming, PumpFun memecoin discovery, and consumer applications at scale.

GoldRush is an indexed **Solana data API**: it serves
decoded, typed Solana data - balances, DEX markets, and wallet activity -
so you skip raw RPC round-trips and per-protocol decoders. Solana's fast
block times and low fees make it a common chain of choice for trading,
memecoin discovery, gaming, and consumer applications.

**Data coverage:** GoldRush covers SPL token balances
(REST) on `solana-mainnet`. See the
dedicated [Solana API](https://goldrush.dev/docs/goldrush-solana/overview.md) tab for the
full picture.

### What's available today

<ul><li>**SPL token balances** for any wallet - Foundational REST.</li></ul>

### Supported APIs

> [card] [Full Solana product suite](https://goldrush.dev/docs/goldrush-solana/overview.md)
>
> Aggregated entry point for GoldRush on Solana - SPL token balances.

> [card] [Foundational API](https://goldrush.dev/docs/goldrush-solana/foundational/overview.md)
>
> REST endpoint for SPL token balances on
> `solana-mainnet`.

## Mainnet

| Property | Value |
| - | - |
| **Chain Name** | `solana-mainnet` |
| **Chain ID** | `1399811149` |
| **Network Type** | Frontier Chain |
| **Support Level** | frontier |
| **Block Explorer** | [Explorer](https://explorer.solana.com/) |
| **Official Website** | [Solana Website](https://solana.com/) |
| **Native Gas Token** | SOL |

## API Usage

To use this blockchain network in GoldRush API calls, use:

#### Chain Name

* `solana-mainnet` (mainnet)

#### Example API Calls

```bash Chain Name (Mainnet) theme={null}
curl -X GET "https://api.covalenthq.com/v1/solana-mainnet/address/4ZJhPQAgUseCsWhKvJLTmmRRUV74fdoTpQLNfKoekbPY/balances_v2/?key=<GOLDRUSH_API_KEY>"
```

#### SDK Usage

```typescript TypeScript SDK (Mainnet) theme={null}
import { GoldRushClient } from "@covalenthq/client-sdk";

const client = new GoldRushClient("<GOLDRUSH_API_KEY>");
const resp = await client.BalanceService.getTokenBalancesForWalletAddress({
    chainName: "solana-mainnet",
    walletAddress: "4ZJhPQAgUseCsWhKvJLTmmRRUV74fdoTpQLNfKoekbPY"
});
```

## Foundational API Support

See the dedicated [Foundational on Solana](https://goldrush.dev/docs/goldrush-solana/foundational/overview.md) walkthrough for the full endpoint surface, organized by category (Wallet, Transactions, NFT, Pricing, Solana-native).

## JSON-RPC

Solana is available on the GoldRush JSON-RPC service. Point your existing Solana tooling (`@solana/web3.js` or raw HTTP) at the GoldRush endpoint — the standard Solana JSON-RPC method set is supported over HTTP, with live subscriptions over WebSocket.

#### Endpoint

```
https://rpc.goldrushdata.com/v1/solana-mainnet
```

WebSocket subscriptions are available at `wss://rpc.goldrushdata.com/v1/solana-mainnet`.

#### Example JSON-RPC Calls

```bash getSlot theme={null}
curl https://rpc.goldrushdata.com/v1/solana-mainnet \
  -H "Authorization: Bearer <GOLDRUSH_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"getSlot","params":[]}'
```

```bash getBalance theme={null}
curl https://rpc.goldrushdata.com/v1/solana-mainnet \
  -H "Authorization: Bearer <GOLDRUSH_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"getBalance","params":["4ZJhPQAgUseCsWhKvJLTmmRRUV74fdoTpQLNfKoekbPY"]}'
```

#### Sample Methods

* **[getSlot on Solana](https://goldrush.dev/docs/api-reference/json-rpc/solana/getslot.md)**
* **[getBalance on Solana](https://goldrush.dev/docs/api-reference/json-rpc/solana/getbalance.md)**
* **[getBlock on Solana](https://goldrush.dev/docs/api-reference/json-rpc/solana/getblock.md)**
* **[getTransaction on Solana](https://goldrush.dev/docs/api-reference/json-rpc/solana/gettransaction.md)**
* **[getSignaturesForAddress on Solana](https://goldrush.dev/docs/api-reference/json-rpc/solana/getsignaturesforaddress.md)**

See the [full method list and per-method examples for Solana](https://goldrush.dev/docs/api-reference/json-rpc/chains/solana.md).

## Additional Resources

<ul><li>[GoldRush API for Solana - overview](https://goldrush.dev/docs/goldrush-solana/overview.md)</li>
<li>[Foundational endpoints on Solana](https://goldrush.dev/docs/goldrush-solana/foundational/overview.md)</li>
<li>[GoldRush vs Solana RPC](https://goldrush.dev/docs/resources/differentiate-your-solana-app.md)</li>
<li>[Supported Chains](https://goldrush.dev/docs/chains/overview.md)</li></ul>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.