Solana RPC Methods

Interact with Solana nodes directly with the JSON RPC API via the HTTP and Websocket methods.

Applying each RPC method within RPC Fast Solana SaaS will cost you 1 CU. The only exception is getProgramAccounts (10 CU)arrow-up-right. Read more in Compute Units.

Please refer to Solana Documentationarrow-up-right for detailed guidelines on each RPC method. Here's how the methods break down by category:

Category
Methods
What they do

Block & Slot information

getBlock, getBlocks, getBlockHeight, getBlockTime, getSlot, getBlockCommitment, getFirstAvailableBlock, getLatestBlockhash

Retrieve block data, slot numbers, and blockchain height. Essential for syncing and monitoring the chain state.

Transaction queries

getTransaction, getSignatureStatuses, getSignaturesForAddress, getRecentPerformanceSamples

Look up transaction details, confirmation status, and historical signatures for addresses.

Account data

getAccountInfo, getBalance, getMultipleAccounts, getStakeActivation

Fetch account balances, metadata, and stake information. Core methods for wallets and dApps.

Network & Validator info

getClusterNodes, getEpochInfo, getHealth, getIdentity, getInflationRate, getLeaderSchedule, getSupply, getVersion, getVoteAccounts

Monitor network health, validator performance, and epoch data.

Transaction submission

sendTransaction, simulateTransaction

Submit transactions to the network and test them before sending.

Fee & Rent calculations

getFeeForMessage, getMinimumBalanceForRentExemption, getRecentPrioritizationFees

Calculate transaction fees and rent requirements.

RPC Methods Availability

Certain RPC methods are only available on paid plans:

  • getProgramAccounts

  • getTokenAccountsByOwner

  • getTokenAccountsByDelegate

  • getTokenLargestAccounts

Start Plan:

Calling getProgramAccounts RPC method will lead to a warning:

{"jsonrpc": "2.0", "id": 1, "error": {"code": -32602, "message": "Method usage requires an upgrade to a paid plan. See "}}

Paid plans:

If the user specifies any of the program IDs below, the following error will occur:

Last updated