> ## 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 JSON-RPC

> GoldRush JSON-RPC for Solana. Endpoint URLs, supported methods, and code examples.

GoldRush JSON-RPC supports **Solana**.

## Endpoint

```
https://rpc.goldrushdata.com/v1/solana-mainnet          # HTTP (JSON-RPC)
wss://rpc.goldrushdata.com/v1/solana-mainnet          # WebSocket (subscriptions)
```

| Property | Value |
| - | - |
| **Chain slug** | `solana-mainnet` |
| **Cluster** | Mainnet Beta |
| **Native token** | SOL (1 SOL = 1,000,000,000 lamports) |
| **Commitment levels** | `processed`, `confirmed`, `finalized` |
| **HTTP endpoint** | `https://rpc.goldrushdata.com/v1/solana-mainnet` |
| **WebSocket endpoint** | `wss://rpc.goldrushdata.com/v1/solana-mainnet` |
| **Block explorer** | [https://explorer.solana.com/](https://explorer.solana.com/) |

## Quickstart

```bash 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": [{"commitment":"finalized"}]
  }'
```

## Supported methods

Each method below has a dedicated reference page tuned for Solana, with chain-specific examples.

### Blocks info

* [`getBlock`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getblock): Returns identity and transaction information for a confirmed block.
* [`getBlocks`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getblocks): Returns a list of confirmed blocks between two slots.
* [`getBlocksWithLimit`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getblockswithlimit): Returns a list of confirmed blocks starting at a slot, up to a limit.
* [`getBlockHeight`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getblockheight): Returns the current block height of the node.
* [`getBlockTime`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getblocktime): Returns the estimated production time of a block.
* [`getBlockProduction`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getblockproduction): Returns recent block production information for the current or a previous epoch.
* [`getBlockCommitment`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getblockcommitment): Returns the commitment (stake-weighted votes) for a block.
* [`getLatestBlockhash`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getlatestblockhash): Returns the latest blockhash and its last valid block height.
* [`isBlockhashValid`](https://goldrush.dev/docs/api-reference/json-rpc/solana/isblockhashvalid): Returns whether a blockhash is still valid.
* [`getRecentBlockhash`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getrecentblockhash): Returns a recent blockhash and fee schedule (deprecated). *(deprecated)*
* [`getConfirmedBlock`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getconfirmedblock): Returns the contents of a confirmed block (deprecated). *(deprecated)*
* [`getConfirmedBlocks`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getconfirmedblocks): Returns a list of confirmed blocks between two slots (deprecated). *(deprecated)*

### Transactions info

* [`getTransaction`](https://goldrush.dev/docs/api-reference/json-rpc/solana/gettransaction): Returns details for a confirmed transaction by signature.
* [`sendTransaction`](https://goldrush.dev/docs/api-reference/json-rpc/solana/sendtransaction): Submits a signed transaction to the cluster.
* [`simulateTransaction`](https://goldrush.dev/docs/api-reference/json-rpc/solana/simulatetransaction): Simulates sending a transaction without submitting it.
* [`getSignaturesForAddress`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getsignaturesforaddress): Returns confirmed transaction signatures involving an address.
* [`getSignatureStatuses`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getsignaturestatuses): Returns the status of a list of transaction signatures.
* [`getTransactionCount`](https://goldrush.dev/docs/api-reference/json-rpc/solana/gettransactioncount): Returns the total number of transactions processed by the cluster.
* [`getConfirmedTransaction`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getconfirmedtransaction): Returns details for a confirmed transaction (deprecated). *(deprecated)*
* [`getConfirmedSignaturesForAddress2`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getconfirmedsignaturesforaddress2): Returns confirmed signatures for an address (deprecated). *(deprecated)*

### Node info

* [`getHealth`](https://goldrush.dev/docs/api-reference/json-rpc/solana/gethealth): Returns the health status of the node.
* [`getVersion`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getversion): Returns the Solana software version running on the node.
* [`getIdentity`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getidentity): Returns the identity pubkey of the node.
* [`getClusterNodes`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getclusternodes): Returns information about all nodes participating in the cluster.

### Account info

* [`getAccountInfo`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getaccountinfo): Returns all information associated with an account.
* [`getBalance`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getbalance): Returns the lamport balance of an account.
* [`getMultipleAccounts`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getmultipleaccounts): Returns account information for a list of addresses.
* [`getProgramAccounts`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getprogramaccounts): Returns all accounts owned by a program.
* [`getLargestAccounts`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getlargestaccounts): Returns the 20 largest accounts by lamport balance.
* [`getVoteAccounts`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getvoteaccounts): Returns the current and delinquent vote accounts.
* [`getStakeActivation`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getstakeactivation): Returns epoch activation information for a stake account (deprecated). *(deprecated)*

### Network info

* [`getEpochInfo`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getepochinfo): Returns information about the current epoch.
* [`getEpochSchedule`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getepochschedule): Returns the epoch schedule from the cluster genesis config.
* [`getFeeForMessage`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getfeeformessage): Returns the fee the cluster will charge for a message.
* [`getRecentPrioritizationFees`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getrecentprioritizationfees): Returns recent per-compute-unit prioritization fees.
* [`getMinimumBalanceForRentExemption`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getminimumbalanceforrentexemption): Returns the minimum lamport balance for rent exemption.
* [`getGenesisHash`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getgenesishash): Returns the genesis hash of the cluster.
* [`getFirstAvailableBlock`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getfirstavailableblock): Returns the slot of the lowest confirmed block still available.
* [`getHighestSnapshotSlot`](https://goldrush.dev/docs/api-reference/json-rpc/solana/gethighestsnapshotslot): Returns the highest slot for which the node has snapshots.
* [`getRecentPerformanceSamples`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getrecentperformancesamples): Returns recent network performance samples.
* [`getFees`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getfees): Returns a recent blockhash and fee schedule (deprecated). *(deprecated)*
* [`getFeeCalculatorForBlockhash`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getfeecalculatorforblockhash): Returns the fee calculator for a blockhash (deprecated). *(deprecated)*

### Slot info

* [`getSlot`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getslot): Returns the slot that has reached the given commitment level.
* [`getSlotLeader`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getslotleader): Returns the current slot leader.
* [`getSlotLeaders`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getslotleaders): Returns the slot leaders for a slot range.
* [`getLeaderSchedule`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getleaderschedule): Returns the leader schedule for an epoch.
* [`getMaxRetransmitSlot`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getmaxretransmitslot): Returns the highest slot seen by the retransmit stage.
* [`getMaxShredInsertSlot`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getmaxshredinsertslot): Returns the highest slot for which shreds have been inserted.
* [`minimumLedgerSlot`](https://goldrush.dev/docs/api-reference/json-rpc/solana/minimumledgerslot): Returns the lowest slot the node has information about in its ledger.

### Token info

* [`getTokenAccountsByOwner`](https://goldrush.dev/docs/api-reference/json-rpc/solana/gettokenaccountsbyowner): Returns all SPL token accounts owned by an address.
* [`getTokenAccountBalance`](https://goldrush.dev/docs/api-reference/json-rpc/solana/gettokenaccountbalance): Returns the token balance of an SPL token account.
* [`getTokenSupply`](https://goldrush.dev/docs/api-reference/json-rpc/solana/gettokensupply): Returns the total supply of an SPL token.
* [`getTokenLargestAccounts`](https://goldrush.dev/docs/api-reference/json-rpc/solana/gettokenlargestaccounts): Returns the 20 largest accounts for an SPL token mint.
* [`getTokenAccountsByDelegate`](https://goldrush.dev/docs/api-reference/json-rpc/solana/gettokenaccountsbydelegate): Returns all SPL token accounts delegated to an address.
* [`requestAirdrop`](https://goldrush.dev/docs/api-reference/json-rpc/solana/requestairdrop): Requests an airdrop of lamports to an account (devnet/testnet).

### Subscriptions

* [`accountSubscribe`](https://goldrush.dev/docs/api-reference/json-rpc/solana/accountsubscribe): Subscribes to changes to an account.
* [`accountUnsubscribe`](https://goldrush.dev/docs/api-reference/json-rpc/solana/accountunsubscribe): Cancels an account subscription.
* [`logsSubscribe`](https://goldrush.dev/docs/api-reference/json-rpc/solana/logssubscribe): Subscribes to transaction logging.
* [`logsUnsubscribe`](https://goldrush.dev/docs/api-reference/json-rpc/solana/logsunsubscribe): Cancels a logs subscription.
* [`programSubscribe`](https://goldrush.dev/docs/api-reference/json-rpc/solana/programsubscribe): Subscribes to changes to all accounts owned by a program.
* [`programUnsubscribe`](https://goldrush.dev/docs/api-reference/json-rpc/solana/programunsubscribe): Cancels a program subscription.
* [`signatureSubscribe`](https://goldrush.dev/docs/api-reference/json-rpc/solana/signaturesubscribe): Subscribes to receive a notification when a transaction is confirmed.
* [`signatureUnsubscribe`](https://goldrush.dev/docs/api-reference/json-rpc/solana/signatureunsubscribe): Cancels a signature subscription.
* [`slotSubscribe`](https://goldrush.dev/docs/api-reference/json-rpc/solana/slotsubscribe): Subscribes to receive notification when a slot is processed.
* [`slotUnsubscribe`](https://goldrush.dev/docs/api-reference/json-rpc/solana/slotunsubscribe): Cancels a slot subscription.
* [`blockSubscribe`](https://goldrush.dev/docs/api-reference/json-rpc/solana/blocksubscribe): Subscribes to receive notification when a new block is confirmed.
* [`blockUnsubscribe`](https://goldrush.dev/docs/api-reference/json-rpc/solana/blockunsubscribe): Cancels a block subscription.

### Network inflation info

* [`getInflationGovernor`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getinflationgovernor): Returns the current inflation governor parameters.
* [`getInflationRate`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getinflationrate): Returns the inflation rates for the current epoch.
* [`getInflationReward`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getinflationreward): Returns the inflation/staking reward for a list of addresses.
* [`getSupply`](https://goldrush.dev/docs/api-reference/json-rpc/solana/getsupply): Returns information about the current supply of SOL.

## Related

> [card] [JSON-RPC Overview](https://goldrush.dev/docs/goldrush-json-rpc/overview.md)
>
> Product overview and architecture.

> [card] [Authentication](https://goldrush.dev/docs/goldrush-json-rpc/authentication.md)
>
> Header reference and per-library setup.


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