Network Methods

These methods provide a view into the overall network—covering block production, slot info, inflation details, token supply, and other protocol-level metrics. They're useful for monitoring the chain's global behavior and progress.

getMinimumBalanceForRentExemption
Available
Returns the minimum balance required for rent exemption.
Parameters
commitment
The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
commitment
string | string | string (optional)
The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
dataLen
required
integer
The account data length in bytes.

getInflationGovernor
Available
Retrieves the inflation governor settings.
Parameters
commitment
The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
commitment
string | string | string (optional)
The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'

getInflationRate
Available
Retrieves the current inflation rate.
Parameters
No parameters required

getEpochSchedule
Available
Retrieves the epoch schedule.
Parameters
No parameters required

getSlotLeader
Available
Retrieves the leader of the current slot.
Parameters
config
Configuration object for the query.
commitment
string | string | string (optional)
The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
minContextSlot
integer (optional)
The minimum context slot for the context.

getSlotLeaders
Available
Retrieves the leaders for a specified range of slots.
Parameters
limit
required
integer
The maximum number of leaders to return.
startSlot
required
integer
The starting slot to query for leaders.

getBlockProduction
Available
Retrieves block production information.
Parameters
config
Configuration object for the query.
commitment
string | string | string (optional)
The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
identity
string (optional)
Filter by validator identity, as a base-58 encoded string.
firstSlot
integer (optional)
The first slot to include in the range.
lastSlot
integer (optional)
The last slot to include in the range.

getInflationReward
Available
Returns the inflation reward for a given address.
Parameters
addresses
required
array[string]
An array of public keys to query, as base-58 encoded strings.
config
Configuration object for the query.
commitment
string | string | string (optional)
The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
epoch
integer (optional)
The epoch number to query.
minContextSlot
integer (optional)
The minimum context slot for the epoch.

getRecentPerformanceSamples
Available
Returns the recent performance samples.
Parameters
limit
integer (optional)
The maximum number of samples to return.

getMaxRetransmitSlot
Available
Returns the maximum retransmit slot.
Parameters
No parameters required

getMaxShredInsertSlot
Available
Returns the maximum shred insert slot.
Parameters
No parameters required

minimumLedgerSlot
Available
Returns the minimum ledger slot.
Parameters
No parameters required

getBlock
Available
Returns the block for a given slot.
Parameters
config
Configuration object for the query.
commitment
string | string | string (optional)
The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
encoding
string (optional)
Encoding for transaction data.
maxSupportedTransactionVersion
integer (optional)
The maximum transaction version to support.
rewards
boolean (optional)
Whether to return rewards.
transactionDetails
string (optional)
Level of transaction detail to return.
slot
required
integer
The slot to query for the block.

getBlockTime
Available
Returns the block time for a given slot.
Parameters
slot
required
integer
The slot to query for the block time.

getBlocks
Available
Returns the blocks for a given range of slots.
Parameters
config
Configuration object for the query.
commitment
string | string | string (optional)
The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
minContextSlot
integer (optional)
The minimum context slot for the context.
startSlot
required
integer
The starting slot to query for blocks.
wrapper
string (optional)
Wrapper for end slot or context configuration.

getBlocksWithLimit
Available
Returns the blocks for a given range of slots with a limit.
Parameters
config
Configuration object for the query.
commitment
string | string | string (optional)
The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
minContextSlot
integer (optional)
The minimum context slot for the context.
limit
required
integer
The maximum number of blocks to return.
startSlot
required
integer
The starting slot to query for blocks.

getFirstAvailableBlock
Available
Returns the first available block.
Parameters
No parameters required

getLatestBlockhash
Available
Returns the latest blockhash.
Parameters
config
Configuration object for the query.
commitment
string | string | string (optional)
The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
minContextSlot
integer (optional)
The minimum context slot for the context.

isBlockhashValid
Available
Returns the blockhash validity.
Parameters
blockhash
required
string
The blockhash to check, as a base-58 encoded string.
config
Configuration object for the query.
commitment
string | string | string (optional)
The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
minContextSlot
integer (optional)
The minimum context slot for the context.

getRecentPrioritizationFees
Available
Returns the recent prioritization fees.
Parameters
pubkeys
array (optional)
An array of account public keys to query for prioritization fees, as base-58 encoded strings.

getEpochInfo
Available
Returns the epoch info.
Parameters
config
Configuration object for the query.
commitment
string | string | string (optional)
The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
minContextSlot
integer (optional)
The minimum context slot for the context.

getGenesisHash
Available
Returns the genesis hash.
Parameters
No parameters required

getSlot
Available
Returns the current slot.
Parameters
config
Configuration object for the query.
commitment
string | string | string (optional)
The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
minContextSlot
integer (optional)
The minimum context slot for the context.

getBlockHeight
Available
Returns the block height.
Parameters
config
Configuration object for the query.
commitment
string | string | string (optional)
The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
minContextSlot
integer (optional)
The minimum context slot for the context.

getHighestSnapshotSlot
Available
Returns the highest snapshot slot.
Parameters
No parameters required

getTransactionCount
Available
Returns the transaction count.
Parameters
config
Configuration object for the query.
commitment
string | string | string (optional)
The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
minContextSlot
integer (optional)
The minimum context slot for the context.

getVersion
Available
Returns the version of the cluster.
Parameters
No parameters required

getLeaderSchedule
Available
Returns the leader schedule.
Parameters
config
Configuration object for the query.
commitment
string | string | string (optional)
The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
identity
string (optional)
Filter by validator identity.
options
string (optional)
Wrapper for slot or configuration.