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.

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

MethodDescriptionPlans
getAccountInfoReturns all information associated with a single account, including its data, owner and balance.All plans
getBalanceReturns the lamport balance of an account.All plans
getMinimumBalanceForRentExemptionReturns the minimum lamport balance an account of a given size needs to be rent-exempt.All plans
getMultipleAccountsReturns account info for up to 100 addresses in a single call.Operator and above
getProgramAccountsReturns every account owned by a program, optionally narrowed by size and byte-content filters.Blade Runner and above
getProgramAccountsV2Page through a program's accounts in fixed-size chunks using a cursor, instead of one unbounded response.Blade Runner and above

Tokens

MethodDescriptionPlans
getTokenAccountBalanceReturns the token balance of a single SPL Token or Token-2022 account.All plans
getTokenAccountsByDelegateReturns every token account that has approved a given address as its delegate.All plans
getTokenAccountsByOwnerReturns every token account owned by a given wallet, optionally filtered to one mint or token program.Operator and above
getTokenLargestAccountsReturns the 20 largest token accounts of an SPL Token or Token-2022 mint, by balance.Blade Runner and above
getTokenSupplyReturns the total supply of an SPL Token or Token-2022 mint.All plans

Transactions

MethodDescriptionPlans
getSignaturesForAddressReturns recent transaction signatures that touched a given address, newest first.Operator and above
getSignatureStatusesReturns the confirmation status of up to 100 transaction signatures.Operator and above
getTransactionReturns full details for a single confirmed transaction by signature.All plans
getTransactionCountReturns the total number of transactions ever processed by the cluster.All plans
sendTransactionSubmits a signed transaction to the cluster and returns its signature immediately.All plans
simulateTransactionRuns a transaction against current bank state without submitting it, returning logs, balance changes and any error.All plans

Fees & Blockhash

MethodDescriptionPlans
getFeeForMessageReturns the fee, in lamports, that a compiled transaction message would cost right now.All plans
getLatestBlockhashReturns a recent blockhash and the last block height it remains valid through.Operator and above
getRecentPrioritizationFeesReturns per-slot prioritization fees paid recently, optionally scoped to a set of accounts.All plans
isBlockhashValidChecks whether a blockhash is still recent enough to be accepted by the network.All plans

Blocks

MethodDescriptionPlans
getBlockReturns full details for a confirmed block by slot number.All plans
getBlockCommitmentReturns the stake-weighted vote commitment history for a specific block.All plans
getBlockHeightReturns the current block height the node has processed.All plans
getBlockProductionReturns per-validator block production stats (slots led vs. blocks actually produced) for a slot range.All plans
getBlocksReturns confirmed block slot numbers within a given range, skipping any slots that were never produced.Blade Runner and above
getBlocksWithLimitReturns up to limit confirmed block slot numbers starting from a given slot.Blade Runner and above
getBlockTimeReturns the estimated production time of a confirmed block.All plans
getFirstAvailableBlockReturns the oldest block from which every later block can be retrieved with getBlock.All plans

Slots & Epochs

MethodDescriptionPlans
getEpochInfoReturns information about the current epoch, including progress through it.All plans
getEpochScheduleReturns the cluster's epoch-length parameters.All plans
getHighestSnapshotSlotReturns the highest full and incremental snapshot slots the node has generated.All plans
getLeaderScheduleReturns the full slot-leader assignment for an epoch, grouped by validator identity.All plans
getMaxRetransmitSlotReturns the highest slot the node has seen and retransmitted shreds for.All plans
getMaxShredInsertSlotReturns the highest slot the node has inserted shreds for into its blockstore.All plans
getRecentPerformanceSamplesReturns recent per-sample-period throughput statistics for the cluster.All plans
getSlotReturns the current slot the node has processed.All plans
getSlotLeaderReturns the identity of the current slot leader.All plans
getSlotLeadersReturns the slot leader for each slot in a forward-looking range.All plans
minimumLedgerSlotReturns the oldest slot the region's ledger holds.All plans

Network & Cluster

MethodDescriptionPlans
getClusterNodesLists every node visible in the cluster's gossip network, with its ports and client version.All plans
getGenesisHashReturns the genesis hash that identifies which cluster the node belongs to.All plans
getHealthReports whether the RPC node is caught up with the cluster and safe to send traffic to.All plans
getIdentityReturns the identity public key of the node that answers the request.All plans
getVersionReturns the software version and feature set of the node that answers the request.All plans

Staking & Inflation

MethodDescriptionPlans
getInflationGovernorReturns the cluster's inflation schedule parameters (initial rate, taper, terminal rate).All plans
getInflationRateReturns the specific inflation rate values in effect for the current epoch.All plans
getInflationRewardReturns the inflation reward paid to a list of stake accounts for a given epoch.All plans
getStakeMinimumDelegationReturns the minimum number of lamports required to delegate a stake account.All plans
getSupplyReturns total and circulating SOL supply, plus the list of non-circulating accounts.Blade Runner and above
getVoteAccountsReturns the current and delinquent vote accounts, with their stake and voting history.All plans

On this page