HTTP Methods
Every Solana JSON-RPC method on constant-k, with parameters, examples and a live playground.
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.
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 # AmsterdamAccounts
| Method | Description | Plans |
|---|---|---|
getAccountInfo | Returns all information associated with a single account, including its data, owner and balance. | All plans |
getBalance | Returns the lamport balance of an account. | All plans |
getMinimumBalanceForRentExemption | Returns the minimum lamport balance an account of a given size needs to be rent-exempt. | All plans |
getMultipleAccounts | Returns account info for up to 100 addresses in a single call. | Operator and above |
getProgramAccounts | Returns every account owned by a program, optionally narrowed by size and byte-content filters. | Blade Runner and above |
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 | Returns the token balance of a single SPL Token or Token-2022 account. | All plans |
getTokenAccountsByDelegate | Returns every token account that has approved a given address as its delegate. | All plans |
getTokenAccountsByOwner | Returns every token account owned by a given wallet, optionally filtered to one mint or token program. | Operator and above |
getTokenLargestAccounts | Returns the 20 largest token accounts of an SPL Token or Token-2022 mint, by balance. | Blade Runner and above |
getTokenSupply | Returns the total supply of an SPL Token or Token-2022 mint. | All plans |
Transactions
| Method | Description | Plans |
|---|---|---|
getSignaturesForAddress | Returns recent transaction signatures that touched a given address, newest first. | Operator and above |
getSignatureStatuses | Returns the confirmation status of up to 100 transaction signatures. | Operator and above |
getTransaction | Returns full details for a single confirmed transaction by signature. | All plans |
getTransactionCount | Returns the total number of transactions ever processed by the cluster. | All plans |
sendTransaction | Submits a signed transaction to the cluster and returns its signature immediately. | All plans |
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 | Returns the fee, in lamports, that a compiled transaction message would cost right now. | All plans |
getLatestBlockhash | Returns a recent blockhash and the last block height it remains valid through. | Operator and above |
getRecentPrioritizationFees | Returns per-slot prioritization fees paid recently, optionally scoped to a set of accounts. | All plans |
isBlockhashValid | Checks whether a blockhash is still recent enough to be accepted by the network. | All plans |
Blocks
| Method | Description | Plans |
|---|---|---|
getBlock | Returns full details for a confirmed block by slot number. | All plans |
getBlockCommitment | Returns the stake-weighted vote commitment history for a specific block. | All plans |
getBlockHeight | Returns the current block height the node has processed. | All plans |
getBlockProduction | Returns per-validator block production stats (slots led vs. blocks actually produced) for a slot range. | All plans |
getBlocks | Returns confirmed block slot numbers within a given range, skipping any slots that were never produced. | Blade Runner and above |
getBlocksWithLimit | Returns up to limit confirmed block slot numbers starting from a given slot. | Blade Runner and above |
getBlockTime | Returns the estimated production time of a confirmed block. | All plans |
getFirstAvailableBlock | Returns the oldest block from which every later block can be retrieved with getBlock. | All plans |
Slots & Epochs
| Method | Description | Plans |
|---|---|---|
getEpochInfo | Returns information about the current epoch, including progress through it. | All plans |
getEpochSchedule | Returns the cluster's epoch-length parameters. | All plans |
getHighestSnapshotSlot | Returns the highest full and incremental snapshot slots the node has generated. | All plans |
getLeaderSchedule | Returns the full slot-leader assignment for an epoch, grouped by validator identity. | All plans |
getMaxRetransmitSlot | Returns the highest slot the node has seen and retransmitted shreds for. | All plans |
getMaxShredInsertSlot | Returns the highest slot the node has inserted shreds for into its blockstore. | All plans |
getRecentPerformanceSamples | Returns recent per-sample-period throughput statistics for the cluster. | All plans |
getSlot | Returns the current slot the node has processed. | All plans |
getSlotLeader | Returns the identity of the current slot leader. | All plans |
getSlotLeaders | Returns the slot leader for each slot in a forward-looking range. | All plans |
minimumLedgerSlot | Returns the oldest slot the region's ledger holds. | All plans |
Network & Cluster
| Method | Description | Plans |
|---|---|---|
getClusterNodes | Lists every node visible in the cluster's gossip network, with its ports and client version. | All plans |
getGenesisHash | Returns the genesis hash that identifies which cluster the node belongs to. | All plans |
getHealth | Reports whether the RPC node is caught up with the cluster and safe to send traffic to. | All plans |
getIdentity | Returns the identity public key of the node that answers the request. | All plans |
getVersion | Returns the software version and feature set of the node that answers the request. | All plans |
Staking & Inflation
| Method | Description | Plans |
|---|---|---|
getInflationGovernor | Returns the cluster's inflation schedule parameters (initial rate, taper, terminal rate). | All plans |
getInflationRate | Returns the specific inflation rate values in effect for the current epoch. | All plans |
getInflationReward | Returns the inflation reward paid to a list of stake accounts for a given epoch. | All plans |
getStakeMinimumDelegation | Returns the minimum number of lamports required to delegate a stake account. | All plans |
getSupply | Returns total and circulating SOL supply, plus the list of non-circulating accounts. | Blade Runner and above |
getVoteAccounts | Returns the current and delinquent vote accounts, with their stake and voting history. | All plans |