RPC Methods Reference

Complete reference for all Solana JSON-RPC API methods.

Updated March 202510 min read

The Solana JSON-RPC API provides approximately 50 methods for interacting with the blockchain. Methods are categorized by their primary function.

Account Methods

getAccountInfo (fetch account data and metadata), getMultipleAccountsInfo (batch account fetching), getProgramAccounts (all accounts owned by a program), getTokenAccountsByOwner (SPL token accounts for a wallet), getBalance (SOL balance for an address).

Transaction Methods

sendTransaction (submit a signed transaction), simulateTransaction (test a transaction without submitting), getTransaction (fetch a confirmed transaction by signature), getSignaturesForAddress (transaction history for an account), getBlock (all transactions in a specific block).

Block and Slot Methods

getLatestBlockhash (current blockhash for transaction construction), getSlot (current slot number), getBlockHeight (current block height), getEpochInfo (current epoch information), getRecentPrioritizationFees (recent priority fee data).

Subscription Methods (WebSocket only): accountSubscribe (real-time account updates), programSubscribe (updates for all accounts owned by a program), signatureSubscribe (notification when a transaction is confirmed), slotSubscribe (new slot notifications), logsSubscribe (transaction log notifications).

Configuration Options

Most methods accept a commitment parameter (processed/confirmed/finalized) and an encoding parameter (base58/base64/jsonParsed). Use jsonParsed encoding for human-readable account data when available.

ℹ️
This section is actively being expanded. Check back for more detailed guides, code examples, and tutorials.