Example Calls

Common Solana RPC Methods & Descriptions



MethodDescription
sendTransactionSends a transaction to the blockchain for confirmation.
getBalanceRetrieves the current balance of a specified account.
getAccountInfoProvides detailed information about an account, including token balances and ownership.
getTokenAccountsByOwnerLists all SPL token accounts associated with a specified wallet address.
getBlockHeightReturns the current height of the blockchain.
getVersionShows the current version of the Solana node software.
simulateTransactionTests a transaction without submitting it, useful for debugging.
getGenesisHashReturns the unique hash of the first (genesis) block on Solana.
getClusterNodesLists nodes participating in the Solana cluster.
getSlotRetrieves the current slot number on the blockchain.
requestAirdropRequests SOL tokens from a testnet faucet to a specified account.
getEpochScheduleProvides scheduling information about blockchain epochs.
getHealthChecks the overall health and responsiveness of the RPC endpoint.
getBlockRetrieves data from a specific block by its slot number.
getBlockCommitmentShows commitment levels for transactions in a specified block.
getBlockProductionGives information on the number of blocks produced by validators.
getBlocksLists blocks within a specified range of slot numbers.
getBlockTimeRetrieves the Unix timestamp for a specified block.
getEpochInfoReturns current epoch-related data, such as length and progression.
getFeeForMessageEstimates the transaction fee required for a given message.
getFirstAvailableBlockProvides the slot number of the earliest available block.
getHighestSnapshotSlotGives the highest available snapshot slot number for recovery purposes.
getIdentityReturns the identity of the RPC node.
getInflationGovernorRetrieves settings and parameters governing Solana's inflation.
getInflationRateProvides current inflation rates and details.
getInflationRewardCalculates inflation rewards for accounts during specific epochs.
getLargestAccountsLists accounts with the largest balances on Solana.
getLeaderScheduleShows validator leaders scheduled for block production.
getMinimumBalanceForRentExemptionCalculates minimum SOL balance to avoid account rent fees.
getProgramAccountsLists all accounts associated with a specific program.
getRecentPerformanceSamplesRetrieves recent performance metrics of the Solana network.
getSignaturesForAddressLists transaction signatures involving a specific account.
getSlotLeaderShows the current slot leader (validator responsible for the current block).
getSupplyProvides circulating and total SOL supply details.
getTokenAccountBalanceChecks the token balance of a specified token account.
getTokenLargestAccountsLists largest holders of a particular token.
getTokenSupplyGives total supply information for an SPL token.
getTransactionRetrieves detailed information about a specific transaction by its signature.
getTransactionCountProvides the total number of processed transactions on Solana.
getVoteAccountsLists validator accounts and their voting statuses.
isBlockhashValidChecks whether a given blockhash is valid or has expired.
minimumLedgerSlotShows the minimum ledger slot number available for query.