RPC

Network

Access network-wide information like epoch data and performance metrics

Access network-wide information like epoch data, inflation rates, and performance metrics.

getMinimumBalanceForRentExemption

Returns the minimum balance required for rent exemption.

Parameters
NameTypeDescription
dataLen*
integerThe account data length in bytes.
commitment
objectThe commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'.
â””commitment
string | string | stringThe commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
Result
FieldTypeDescription
result
integergetMinimumBalanceForRentExemption - Returns minimum balance for rent exemption
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getMinimumBalanceForRentExemption",  "params": {    "dataLen": 0,    "commitment": {      "commitment": "Processed"    }  }}

getInflationGovernor

Retrieves the inflation governor settings.

Parameters
NameTypeDescription
commitment
objectThe commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'.
â””commitment
string | string | stringThe commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
Result
FieldTypeDescription
foundation
number
foundationTerm
number
initial
number
taper
number
terminal
number
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getInflationGovernor",  "params": {    "commitment": {      "commitment": "Processed"    }  }}

getInflationRate

Retrieves the current inflation rate.

Result
FieldTypeDescription
epoch
integer
foundation
number
total
number
validator
number
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getInflationRate",  "params": []}

getEpochSchedule

Retrieves the epoch schedule.

Result
FieldTypeDescription
firstNormalEpoch
integerFirst normal-length epoch, if any
firstNormalSlot
integerFirst normal-length slot
leaderScheduleSlotOffset
integerDuration of leader schedule slot in each epoch
slotsPerEpoch
integerNumber of slots in each epoch
warmup
booleanWhether epochs start short and grow
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getEpochSchedule",  "params": []}

getSlotLeader

Retrieves the leader of the current slot.

Parameters
NameTypeDescription
config
objectConfiguration object for the query.
â””commitment
string | string | stringThe commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
â””minContextSlot
integerThe minimum context slot for the context.
Result
FieldTypeDescription
result
stringgetSlotLeader - Returns the leader of the current slot
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getSlotLeader",  "params": {    "config": {      "commitment": "Processed",      "minContextSlot": 123456789    }  }}

getSlotLeaders

Retrieves the leaders for a specified range of slots.

Parameters
NameTypeDescription
startSlot*
integerThe starting slot to query for leaders.
limit*
integerThe maximum number of leaders to return.
Result
FieldTypeDescription
result
array<string>getSlotLeaders - Returns leaders for a specified range of slots
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getSlotLeaders",  "params": {    "startSlot": 123456789,    "limit": 0  }}

getBlockProduction

Retrieves block production information.

Parameters
NameTypeDescription
config
objectConfiguration object for the query.
â””commitment
objectThe commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'.
â””commitment
string | string | stringThe commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
â””identity
stringFilter by validator identity, as a base-58 encoded string.
â””range
objectSlot range to query.
â””firstSlot
integerThe first slot to include in the range.
â””lastSlot
integerThe last slot to include in the range.
Result
FieldTypeDescription
context
object
â””apiVersion
stringThe API version
â””slot
integerThe current slot
value
object
â””byIdentity
object
â””range
object
â””firstSlot
integer
â””lastSlot
integer
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getBlockProduction",  "params": {    "config": {      "commitment": {        "commitment": "Processed"      },      "identity": "<some-identity>",      "range": {        "firstSlot": 123456789,        "lastSlot": 123456789      }    }  }}

getInflationReward

Returns the inflation reward for a given address.

Parameters
NameTypeDescription
addresses*
array[string]An array of public keys to query, as base-58 encoded strings.
config
objectConfiguration object for the query.
â””commitment
string | string | stringThe commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
â””epoch
integerThe epoch number to query.
â””minContextSlot
integerThe minimum context slot for the epoch.
Result
FieldTypeDescription
result
array<RpcInflationReward>getInflationReward - Returns inflation rewards for given addresses
â””[]
objectArray item
â””amount
integer
â””commission
integer
â””effectiveSlot
integer
â””epoch
integer
â””postBalance
integer
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getInflationReward",  "params": {    "addresses": [      "83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"    ],    "config": {      "commitment": "Processed",      "epoch": 100,      "minContextSlot": 123456789    }  }}

getRecentPerformanceSamples

Returns the recent performance samples.

Parameters
NameTypeDescription
limit
integerThe maximum number of samples to return.
Result
FieldTypeDescription
result
array<RpcPerfSample>getRecentPerformanceSamples - Returns recent performance samples
â””[]
objectArray item
â””numNonVoteTransactions
integer
â””numSlots
integer
â””numTransactions
integer
â””samplePeriodSecs
integer
â””slot
integer
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getRecentPerformanceSamples",  "params": {    "limit": 0  }}

getMaxRetransmitSlot

Returns the maximum retransmit slot.

Result
FieldTypeDescription
result
integergetMaxRetransmitSlot - Returns maximum retransmit slot
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getMaxRetransmitSlot",  "params": []}

getMaxShredInsertSlot

Returns the maximum shred insert slot.

Result
FieldTypeDescription
result
integergetMaxShredInsertSlot - Returns maximum shred insert slot
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getMaxShredInsertSlot",  "params": []}

minimumLedgerSlot

Returns the minimum ledger slot.

Result
FieldTypeDescription
result
integerminimumLedgerSlot - Returns minimum ledger slot
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "minimumLedgerSlot",  "params": []}

getBlock

Returns the block for a given slot.

Parameters
NameTypeDescription
slot*
integerThe slot to query for the block.
config
objectConfiguration object for the query.
â””commitment
objectThe commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'.
â””commitment
string | string | stringThe commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
â””encoding
stringEncoding for transaction data.
â””maxSupportedTransactionVersion
integerThe maximum transaction version to support.
â””rewards
booleanWhether to return rewards.
â””transactionDetails
stringLevel of transaction detail to return.
Result
FieldTypeDescription
blockHeight
integerBlock height
blockTime
integerBlock time
blockhash
stringBlock hash
parentSlot
integerParent slot
previousBlockhash
stringPrevious block hash
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getBlock",  "params": {    "slot": 123456789,    "config": {      "commitment": {        "commitment": "Processed"      },      "encoding": "binary",      "maxSupportedTransactionVersion": 0,      "rewards": true,      "transactionDetails": "full"    }  }}

getBlockTime

Returns the block time for a given slot.

Parameters
NameTypeDescription
slot*
integerThe slot to query for the block time.
Result
FieldTypeDescription
result
integergetBlockTime - Returns block time for a given slot
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getBlockTime",  "params": {    "slot": 123456789  }}

getBlocks

Returns the blocks for a given range of slots.

Parameters
NameTypeDescription
startSlot*
integerThe starting slot to query for blocks.
wrapper
stringWrapper for end slot or context configuration.
config
objectConfiguration object for the query.
â””commitment
string | string | stringThe commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
â””minContextSlot
integerThe minimum context slot for the context.
Result
FieldTypeDescription
result
array<integer>getBlocks - Returns blocks for a range of slots
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getBlocks",  "params": {    "startSlot": 123456789,    "wrapper": 0,    "config": {      "commitment": "Processed",      "minContextSlot": 123456789    }  }}

getBlocksWithLimit

Returns the blocks for a given range of slots with a limit.

Parameters
NameTypeDescription
startSlot*
integerThe starting slot to query for blocks.
limit*
integerThe maximum number of blocks to return.
config
objectConfiguration object for the query.
â””commitment
string | string | stringThe commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
â””minContextSlot
integerThe minimum context slot for the context.
Result
FieldTypeDescription
result
array<integer>getBlocksWithLimit - Returns blocks with limit
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getBlocksWithLimit",  "params": {    "startSlot": 123456789,    "limit": 0,    "config": {      "commitment": "Processed",      "minContextSlot": 123456789    }  }}

getFirstAvailableBlock

Returns the first available block.

Result
FieldTypeDescription
result
integergetFirstAvailableBlock - Returns first available block
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getFirstAvailableBlock",  "params": []}

getLatestBlockhash

Returns the latest blockhash.

Parameters
NameTypeDescription
config
objectConfiguration object for the query.
â””commitment
string | string | stringThe commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
â””minContextSlot
integerThe minimum context slot for the context.
Result
FieldTypeDescription
context
object
â””apiVersion
stringThe API version
â””slot
integerThe current slot
value
object
â””blockhash
string
â””lastValidBlockHeight
integer
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getLatestBlockhash",  "params": {    "config": {      "commitment": "Processed",      "minContextSlot": 123456789    }  }}

isBlockhashValid

Returns the blockhash validity.

Parameters
NameTypeDescription
blockhash*
stringThe blockhash to check, as a base-58 encoded string.
config
objectConfiguration object for the query.
â””commitment
string | string | stringThe commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
â””minContextSlot
integerThe minimum context slot for the context.
Result
FieldTypeDescription
context
object
â””apiVersion
stringThe API version
â””slot
integerThe current slot
value
boolean
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "isBlockhashValid",  "params": {    "blockhash": "EkSnNWid2cvwEVnVx9aBqawnmiCNiDgp3gUdkDPTKN1N",    "config": {      "commitment": "Processed",      "minContextSlot": 123456789    }  }}

getRecentPrioritizationFees

Returns the recent prioritization fees.

Parameters
NameTypeDescription
pubkeys
arrayAn array of account public keys to query for prioritization fees, as base-58 encoded strings.
Result
FieldTypeDescription
result
array<RpcPrioritizationFee>getRecentPrioritizationFees - Returns recent prioritization fees
â””[]
objectArray item
â””prioritizationFee
integer
â””slot
integer
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getRecentPrioritizationFees",  "params": {    "pubkeys": []  }}

getEpochInfo

Returns the epoch info.

Parameters
NameTypeDescription
config
objectConfiguration object for the query.
â””commitment
string | string | stringThe commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
â””minContextSlot
integerThe minimum context slot for the context.
Result
FieldTypeDescription
context
object
â””apiVersion
stringThe API version
â””slot
integerThe current slot
value
object
â””absoluteSlot
integerAbsolute root slot
â””blockHeight
integerBlock height
â””epoch
integerCurrent epoch
â””slotIndex
integerCurrent slot index within the epoch
â””slotsInEpoch
integerTotal number of slots in the epoch
â””transactionCount
integerCurrent transaction count
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getEpochInfo",  "params": {    "config": {      "commitment": "Processed",      "minContextSlot": 123456789    }  }}

getGenesisHash

Returns the genesis hash.

Result
FieldTypeDescription
result
stringgetGenesisHash - Returns the genesis hash
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getGenesisHash",  "params": []}

getSlot

Returns the current slot.

Parameters
NameTypeDescription
config
objectConfiguration object for the query.
â””commitment
string | string | stringThe commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
â””minContextSlot
integerThe minimum context slot for the context.
Result
FieldTypeDescription
context
object
â””apiVersion
stringThe API version
â””slot
integerThe current slot
value
integer
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getSlot",  "params": {    "config": {      "commitment": "Processed",      "minContextSlot": 123456789    }  }}

getBlockHeight

Returns the block height.

Parameters
NameTypeDescription
config
objectConfiguration object for the query.
â””commitment
string | string | stringThe commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
â””minContextSlot
integerThe minimum context slot for the context.
Result
FieldTypeDescription
context
object
â””apiVersion
stringThe API version
â””slot
integerThe current slot
value
integer
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getBlockHeight",  "params": {    "config": {      "commitment": "Processed",      "minContextSlot": 123456789    }  }}

getHighestSnapshotSlot

Returns the highest snapshot slot.

Result
FieldTypeDescription
full
integer
incremental
integer
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getHighestSnapshotSlot",  "params": []}

getTransactionCount

Returns the transaction count.

Parameters
NameTypeDescription
config
objectConfiguration object for the query.
â””commitment
string | string | stringThe commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
â””minContextSlot
integerThe minimum context slot for the context.
Result
FieldTypeDescription
context
object
â””apiVersion
stringThe API version
â””slot
integerThe current slot
value
integer
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getTransactionCount",  "params": {    "config": {      "commitment": "Processed",      "minContextSlot": 123456789    }  }}

getVersion

Returns the version of the cluster.

Result
FieldTypeDescription
feature-set
integer
solana-core
string
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getVersion",  "params": []}

getLeaderSchedule

Returns the leader schedule.

Parameters
NameTypeDescription
options
stringWrapper for slot or configuration.
config
objectConfiguration object for the query.
â””commitment
objectThe commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'.
â””commitment
string | string | stringThe commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
â””identity
stringFilter by validator identity.
Example
{  "jsonrpc": "2.0",  "id": 1,  "method": "getLeaderSchedule",  "params": {    "options": 0,    "config": {      "commitment": {        "commitment": "Processed"      },      "identity": "<some-identity>"    }  }}

On this page