Account Methods
getAccountInfo
Get information about an account. Parameters:Account public key as base-58 encoded string
Configuration objectFields:
commitment(string): Commitment levelencoding(string): Data encoding (base58, base64, base64+zstd, jsonParsed)dataSlice(object): Limit returned data with{offset: number, length: number}minContextSlot(number): Minimum slot for the request
getBalance
Get the lamport balance of an account. Parameters:Account public key as base-58 encoded string
Configuration with
commitment and minContextSlot fieldsgetMultipleAccounts
Get information for multiple accounts in a single request. Parameters:Array of account public keys (max 100)
Same configuration options as getAccountInfo
getProgramAccounts
Get all accounts owned by a program. Parameters:Program public key as base-58 encoded string
Configuration objectFields:
commitment,encoding,dataSlice,minContextSlot(same as getAccountInfo)filters(array): Filter results by account datawithContext(bool): Wrap result in RpcResponse
Block Methods
getBlock
Get a confirmed block. Parameters:Slot number
Configuration objectFields:
encoding(string): base58, base64, json, jsonParsedtransactionDetails(string): full, signatures, nonerewards(bool): Include rewardscommitment(string): Commitment level (finalized or confirmed only)maxSupportedTransactionVersion(number): Max transaction version
getBlocks
Get a list of confirmed blocks between two slots. Parameters:Start slot (inclusive)
End slot (inclusive). If not provided, returns up to 500,000 blocks.
Configuration with
commitment fieldgetBlockHeight
Get the current block height. Parameters:Configuration with
commitment and minContextSlotgetBlockTime
Get the estimated production time of a block. Parameters:Slot number
null if not available.
Transaction Methods
sendTransaction
Submit a signed transaction to the cluster. Parameters:Fully-signed transaction as base64 or base58 encoded string
Configuration objectFields:
encoding(string): base58 or base64skipPreflight(bool): Skip preflight checkspreflightCommitment(string): Commitment for preflightmaxRetries(number): Max retry attemptsminContextSlot(number): Minimum slot for processing
getTransaction
Get a confirmed transaction. Parameters:Transaction signature as base-58 string
Configuration objectFields:
encoding(string): json, jsonParsed, base64, base58commitment(string): Commitment levelmaxSupportedTransactionVersion(number): Max version
getSignatureStatuses
Get statuses for multiple transaction signatures. Parameters:Array of transaction signatures (max 256)
Configuration with
searchTransactionHistory (bool) fieldsimulateTransaction
Simulate a transaction without committing it. Parameters:Transaction as base64 or base58 string
Configuration objectFields:
commitment(string): Commitment levelencoding(string): base58 or base64replaceRecentBlockhash(bool): Replace blockhash with latestaccounts(object): Account overridesminContextSlot(number): Minimum slot
Slot Methods
getSlot
Get the current slot. Parameters:Configuration with
commitment and minContextSlotgetSlotLeader
Get the current slot leader. Parameters:Configuration with
commitment and minContextSlotgetSlotLeaders
Get the slot leaders for a range of slots. Parameters:Start slot
Number of leaders to return (max 5000)
Network Methods
getVersion
Get the current validator version. Response:getHealth
Check node health. Response:"ok"if healthy- Error if unhealthy
getClusterNodes
Get information about all nodes in the cluster. Response:Utility Methods
getRecentBlockhash (Deprecated)
Get a recent blockhash. Deprecated: UsegetLatestBlockhash instead.
getLatestBlockhash
Get the latest blockhash. Parameters:Configuration with
commitment and minContextSlotisBlockhashValid
Check if a blockhash is still valid. Parameters:Blockhash as base-58 string
Configuration with
commitment and minContextSlotminimumLedgerSlot
Get the minimum slot available in the ledger. Response:getEpochInfo
Get information about the current epoch. Parameters:Configuration with
commitment and minContextSlotSee Also
- WebSocket API - Real-time subscriptions
- RPC Overview - Configuration and authentication
- CLI Tools - Query cluster with CLI