HTTP Methods

Make on-demand requests to Solana nodes using standard HTTP callsβ€”ideal for fetching account data, transactions, and blockchain state with simplicity and reliability.

Shyft RPC docs

Learn how to use Solana RPC methods with real-world examples, code snippets, and best practices. Understand request parameters, response formats, and when to use each method for efficient blockchain development.

Account & Balance Methods

Solana's Core RPC methods to fetch Solana account state, token info, and wallet balances.

  • getAccountInfo – fetch the full on-chain data and lamport balance of any account.

  • getBalance – fetch the current balance of a specific account.

  • getMultipleAccounts – Fetch data for multiple accounts in a single call. (Similar to getAccountInfo but for multiple accounts)

  • getProgramAccounts – Find all accounts owned by a specific on-chain program.

  • getSupply – Returns information about the current total supply of SOL, including circulating and non-circulating tokens.

Token Account Methods

Work with SPL tokens on Solana using these essential RPC methods.

  • getTokenAccountsByOwner – Fetch all SPL token accounts owned by a specific wallet address.

  • getTokenLargestAccounts – Retrieve the largest accounts holding a given SPL token β€” useful for analyzing token concentration and top holders.

  • getTokenAccountsByDelegate – Get all token accounts where a specific delegate is authorized to manage tokens on behalf of others.

  • getTokenAccountBalance – Check the balance of a specific SPL token account.

  • getTokenSupply – Returns the total supply of a given SPL token, helping track circulating and fixed supplies.

  • requestAirdrop – Requests free SOL (lamports) to a given account.

Transaction Methods

Core methods for sending transactions, tracking their confirmation status, and accessing historical transaction details on the Solana blockchain.

  • getTransaction β€” Retrieves the complete information about a transaction using its signature.

  • getSignaturesForAddress β€” Lists recent transaction signatures associated with a specific address.

  • getSignaturesStatuses β€” Returns confirmation status and error information for one or more transaction signatures.

  • getTransactionCount β€” Returns the total number of transactions sent by a given account.

  • simulateTransaction β€” Simulates a transaction without broadcasting it, useful for debugging and preflight checks.

  • sendTransaction β€” Submits a signed transaction to the network for processing.

  • getFeeForMessage β€” Returns the estimated transaction fee for a given compiled message, helping you simulate and plan transaction costs accurately.

Block & Slot Methods

Explore Solana’s block structure, slot progression, leader schedules, and ledger timing for historical and real-time insights.

  • getBlock β€” Fetch the full details of a confirmed or finalized block, including transactions.

  • getSlot β€” Returns the current slot the network is processing.

  • getBlocksWithLimit β€” Fetches a limited number of blocks starting from a given slot.

  • getBlockTime β€” Provides the Unix timestamp when a block was produced.

  • getLatestBlockhash β€” Returns the most recent finalized blockhash for sending transactions.

  • isBlockhashValid β€” Checks whether a given blockhash is still valid for transaction processing.

  • getSlotLeader β€” Fetches the current slot’s leader (i.e., the validator responsible for producing the block).

  • getLeaderSchedule β€” Provides the full schedule of slot leaders for a given epoch.

Network & Cluster Methods

Monitor overall network health, validator activity, epoch progress, and cluster-wide performance metrics.

  • getHealth β€” Checks whether the connected node is healthy and fully synced with the cluster.

  • getVersion β€” Returns the Solana software version running on the connected node.

  • getIdentity β€” Provides the public identity key of the current node.

  • getClusterNodes β€” Lists all nodes in the current cluster, including their public key, gossip, TPU, and RPC addresses.

  • getEpochInfo β€” Returns information about the current epoch, such as slot progress, epoch number, and leader schedule.

  • getEpochSchedule β€” Provides configuration details for epochs, including slot and leader rotation rules.

  • getPerformanceSamples β€” Provides recent samples of network performance, including transactions per second and average slot time.

  • getInflationGovernor β€” Returns the current inflation configuration for the network, including the initial rate, tapering schedule, long-term rate, and allocations to the foundation.

  • getInflationRate β€” Provides the current epoch’s inflation breakdown, including total inflation, validator share, foundation share, and the epoch number.

  • getInflationReward β€” Returns inflation rewards (staking rewards) credited to one or more addresses for a specific epoch.

  • getStakeMinimumDelegation β€” Returns the minimum number of lamports required to create a new stake delegation.

Utility & System Methods

Access low-level system utilities, validate blockhashes, estimate transaction fees, and retrieve protocol configuration data.

  • getGenesisHash β€” Returns the hash of the genesis block for chain identity verification.

  • getFirstAvailableBlock β€” Returns the earliest block still available from the node’s ledger.

  • getHighestSnapshotSlot β€” Retrieves the highest snapshot slot available across the network, useful for syncing nodes.

  • minimumLedgerSlot β€” Returns the lowest slot that the node still retains in its ledger.

  • getMaxShredInsertSlot β€” Retrieves the highest slot for which shreds can be inserted into the blockstore.

Last updated

Was this helpful?