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

### Transactions info

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

### Node info

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

### Account info

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

### Network info

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

### Slot info

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

### Token info

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

### Subscriptions

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

### Network inflation info

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

## Related

<CardGroup cols={2}>
  <Card title="JSON-RPC Overview" href="/goldrush-json-rpc/overview" icon="circle-info">Product overview and architecture.</Card>
  <Card title="Authentication" href="/goldrush-json-rpc/authentication" icon="key">Header reference and per-library setup.</Card>
</CardGroup>
