# HTTP Methods

> Every Solana JSON-RPC method on constant-k, with parameters, examples and a live playground.

Source: https://docs.constant-k.com/rpc/http/

{/* Generated by scripts/gen-rpc.mjs. Do not edit. */}

JSON-RPC 2.0 requests use `POST` to a regional endpoint, with the API key in the `api-key` query parameter or the `x-api-key` header.

```bash title="Endpoints"
https://rpc-newyork.constant-k.com/?api-key=YOUR_API_KEY   # New York
https://rpc-frankfurt.constant-k.com/?api-key=YOUR_API_KEY   # Frankfurt
https://rpc-amsterdam.constant-k.com/?api-key=YOUR_API_KEY   # Amsterdam
```

## Accounts

| Method                                                                              | Description                                                                                               | Plans                  |
| ----------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | ---------------------- |
| [`getAccountInfo`](https://docs.constant-k.com/rpc/http/getaccountinfo/)                                       | Returns all information associated with a single account, including its data, owner and balance.          | All plans              |
| [`getBalance`](https://docs.constant-k.com/rpc/http/getbalance/)                                               | Returns the lamport balance of an account.                                                                | All plans              |
| [`getMinimumBalanceForRentExemption`](https://docs.constant-k.com/rpc/http/getminimumbalanceforrentexemption/) | Returns the minimum lamport balance an account of a given size needs to be rent-exempt.                   | All plans              |
| [`getMultipleAccounts`](https://docs.constant-k.com/rpc/http/getmultipleaccounts/)                             | Returns account info for up to 100 addresses in a single call.                                            | Operator and above     |
| [`getProgramAccounts`](https://docs.constant-k.com/rpc/http/getprogramaccounts/)                               | Returns every account owned by a program, optionally narrowed by size and byte-content filters.           | Blade Runner and above |
| [`getProgramAccountsV2`](https://docs.constant-k.com/rpc/http/getprogramaccountsv2/)                           | Page through a program's accounts in fixed-size chunks using a cursor, instead of one unbounded response. | Blade Runner and above |

## Tokens

| Method                                                                | Description                                                                                            | Plans                  |
| --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | ---------------------- |
| [`getTokenAccountBalance`](https://docs.constant-k.com/rpc/http/gettokenaccountbalance/)         | Returns the token balance of a single SPL Token or Token-2022 account.                                 | All plans              |
| [`getTokenAccountsByDelegate`](https://docs.constant-k.com/rpc/http/gettokenaccountsbydelegate/) | Returns every token account that has approved a given address as its delegate.                         | All plans              |
| [`getTokenAccountsByOwner`](https://docs.constant-k.com/rpc/http/gettokenaccountsbyowner/)       | Returns every token account owned by a given wallet, optionally filtered to one mint or token program. | Operator and above     |
| [`getTokenLargestAccounts`](https://docs.constant-k.com/rpc/http/gettokenlargestaccounts/)       | Returns the 20 largest token accounts of an SPL Token or Token-2022 mint, by balance.                  | Blade Runner and above |
| [`getTokenSupply`](https://docs.constant-k.com/rpc/http/gettokensupply/)                         | Returns the total supply of an SPL Token or Token-2022 mint.                                           | All plans              |

## Transactions

| Method                                                          | Description                                                                                                         | Plans              |
| --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------ |
| [`getSignaturesForAddress`](https://docs.constant-k.com/rpc/http/getsignaturesforaddress/) | Returns recent transaction signatures that touched a given address, newest first.                                   | Operator and above |
| [`getSignatureStatuses`](https://docs.constant-k.com/rpc/http/getsignaturestatuses/)       | Returns the confirmation status of up to 100 transaction signatures.                                                | Operator and above |
| [`getTransaction`](https://docs.constant-k.com/rpc/http/gettransaction/)                   | Returns full details for a single confirmed transaction by signature.                                               | All plans          |
| [`getTransactionCount`](https://docs.constant-k.com/rpc/http/gettransactioncount/)         | Returns the total number of transactions ever processed by the cluster.                                             | All plans          |
| [`sendTransaction`](https://docs.constant-k.com/rpc/http/sendtransaction/)                 | Submits a signed transaction to the cluster and returns its signature immediately.                                  | All plans          |
| [`simulateTransaction`](https://docs.constant-k.com/rpc/http/simulatetransaction/)         | Runs a transaction against current bank state without submitting it, returning logs, balance changes and any error. | All plans          |

## Fees & Blockhash

| Method                                                                  | Description                                                                                 | Plans              |
| ----------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------ |
| [`getFeeForMessage`](https://docs.constant-k.com/rpc/http/getfeeformessage/)                       | Returns the fee, in lamports, that a compiled transaction message would cost right now.     | All plans          |
| [`getLatestBlockhash`](https://docs.constant-k.com/rpc/http/getlatestblockhash/)                   | Returns a recent blockhash and the last block height it remains valid through.              | Operator and above |
| [`getRecentPrioritizationFees`](https://docs.constant-k.com/rpc/http/getrecentprioritizationfees/) | Returns per-slot prioritization fees paid recently, optionally scoped to a set of accounts. | All plans          |
| [`isBlockhashValid`](https://docs.constant-k.com/rpc/http/isblockhashvalid/)                       | Checks whether a blockhash is still recent enough to be accepted by the network.            | All plans          |

## Blocks

| Method                                                        | Description                                                                                             | Plans                  |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ---------------------- |
| [`getBlock`](https://docs.constant-k.com/rpc/http/getblock/)                             | Returns full details for a confirmed block by slot number.                                              | All plans              |
| [`getBlockCommitment`](https://docs.constant-k.com/rpc/http/getblockcommitment/)         | Returns the stake-weighted vote commitment history for a specific block.                                | All plans              |
| [`getBlockHeight`](https://docs.constant-k.com/rpc/http/getblockheight/)                 | Returns the current block height the node has processed.                                                | All plans              |
| [`getBlockProduction`](https://docs.constant-k.com/rpc/http/getblockproduction/)         | Returns per-validator block production stats (slots led vs. blocks actually produced) for a slot range. | All plans              |
| [`getBlocks`](https://docs.constant-k.com/rpc/http/getblocks/)                           | Returns confirmed block slot numbers within a given range, skipping any slots that were never produced. | Blade Runner and above |
| [`getBlocksWithLimit`](https://docs.constant-k.com/rpc/http/getblockswithlimit/)         | Returns up to `limit` confirmed block slot numbers starting from a given slot.                          | Blade Runner and above |
| [`getBlockTime`](https://docs.constant-k.com/rpc/http/getblocktime/)                     | Returns the estimated production time of a confirmed block.                                             | All plans              |
| [`getFirstAvailableBlock`](https://docs.constant-k.com/rpc/http/getfirstavailableblock/) | Returns the oldest block from which every later block can be retrieved with getBlock.                   | All plans              |

## Slots & Epochs

| Method                                                                  | Description                                                                          | Plans     |
| ----------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | --------- |
| [`getEpochInfo`](https://docs.constant-k.com/rpc/http/getepochinfo/)                               | Returns information about the current epoch, including progress through it.          | All plans |
| [`getEpochSchedule`](https://docs.constant-k.com/rpc/http/getepochschedule/)                       | Returns the cluster's epoch-length parameters.                                       | All plans |
| [`getHighestSnapshotSlot`](https://docs.constant-k.com/rpc/http/gethighestsnapshotslot/)           | Returns the highest full and incremental snapshot slots the node has generated.      | All plans |
| [`getLeaderSchedule`](https://docs.constant-k.com/rpc/http/getleaderschedule/)                     | Returns the full slot-leader assignment for an epoch, grouped by validator identity. | All plans |
| [`getMaxRetransmitSlot`](https://docs.constant-k.com/rpc/http/getmaxretransmitslot/)               | Returns the highest slot the node has seen and retransmitted shreds for.             | All plans |
| [`getMaxShredInsertSlot`](https://docs.constant-k.com/rpc/http/getmaxshredinsertslot/)             | Returns the highest slot the node has inserted shreds for into its blockstore.       | All plans |
| [`getRecentPerformanceSamples`](https://docs.constant-k.com/rpc/http/getrecentperformancesamples/) | Returns recent per-sample-period throughput statistics for the cluster.              | All plans |
| [`getSlot`](https://docs.constant-k.com/rpc/http/getslot/)                                         | Returns the current slot the node has processed.                                     | All plans |
| [`getSlotLeader`](https://docs.constant-k.com/rpc/http/getslotleader/)                             | Returns the identity of the current slot leader.                                     | All plans |
| [`getSlotLeaders`](https://docs.constant-k.com/rpc/http/getslotleaders/)                           | Returns the slot leader for each slot in a forward-looking range.                    | All plans |
| [`minimumLedgerSlot`](https://docs.constant-k.com/rpc/http/minimumledgerslot/)                     | Returns the oldest slot the region's ledger holds.                                   | All plans |

## Network & Cluster

| Method                                          | Description                                                                                  | Plans     |
| ----------------------------------------------- | -------------------------------------------------------------------------------------------- | --------- |
| [`getClusterNodes`](https://docs.constant-k.com/rpc/http/getclusternodes/) | Lists every node visible in the cluster's gossip network, with its ports and client version. | All plans |
| [`getGenesisHash`](https://docs.constant-k.com/rpc/http/getgenesishash/)   | Returns the genesis hash that identifies which cluster the node belongs to.                  | All plans |
| [`getHealth`](https://docs.constant-k.com/rpc/http/gethealth/)             | Reports whether the RPC node is caught up with the cluster and safe to send traffic to.      | All plans |
| [`getIdentity`](https://docs.constant-k.com/rpc/http/getidentity/)         | Returns the identity public key of the node that answers the request.                        | All plans |
| [`getVersion`](https://docs.constant-k.com/rpc/http/getversion/)           | Returns the software version and feature set of the node that answers the request.           | All plans |

## Staking & Inflation

| Method                                                              | Description                                                                               | Plans                  |
| ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ---------------------- |
| [`getInflationGovernor`](https://docs.constant-k.com/rpc/http/getinflationgovernor/)           | Returns the cluster's inflation schedule parameters (initial rate, taper, terminal rate). | All plans              |
| [`getInflationRate`](https://docs.constant-k.com/rpc/http/getinflationrate/)                   | Returns the specific inflation rate values in effect for the current epoch.               | All plans              |
| [`getInflationReward`](https://docs.constant-k.com/rpc/http/getinflationreward/)               | Returns the inflation reward paid to a list of stake accounts for a given epoch.          | All plans              |
| [`getStakeMinimumDelegation`](https://docs.constant-k.com/rpc/http/getstakeminimumdelegation/) | Returns the minimum number of lamports required to delegate a stake account.              | All plans              |
| [`getSupply`](https://docs.constant-k.com/rpc/http/getsupply/)                                 | Returns total and circulating SOL supply, plus the list of non-circulating accounts.      | Blade Runner and above |
| [`getVoteAccounts`](https://docs.constant-k.com/rpc/http/getvoteaccounts/)                     | Returns the current and delinquent vote accounts, with their stake and voting history.    | All plans              |
