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

​getMinimumBalanceForRentExemption

Returns the minimum balance required for rent exemption. Parameters
​dataLen
integer
required
The account data length in bytes.
​commitment
object
The commitment describes how finalized a block is at that point in time. Options are ‘processed’, ‘confirmed’, or ‘finalized’.
Result
​result
integer
getMinimumBalanceForRentExemption - Returns minimum balance for rent exemption
Request
Response

​getInflationGovernor

Retrieves the inflation governor settings. Parameters
​commitment
object
The commitment describes how finalized a block is at that point in time. Options are ‘processed’, ‘confirmed’, or ‘finalized’.
Result
​foundation
number
​foundationTerm
number
​initial
number
​taper
number
​terminal
number
Request
Response

​getInflationRate

Retrieves the current inflation rate. Result
​epoch
integer
​foundation
number
​total
number
​validator
number
Request
Response

​getEpochSchedule

Retrieves the epoch schedule. Result
​firstNormalEpoch
integer
First normal-length epoch, if any
​firstNormalSlot
integer
First normal-length slot
​leaderScheduleSlotOffset
integer
Duration of leader schedule slot in each epoch
​slotsPerEpoch
integer
Number of slots in each epoch
​warmup
boolean
Whether epochs start short and grow
Request
Response

​getSlotLeader

Retrieves the leader of the current slot. Parameters
​config
object
Configuration object for the query.
Result
​result
string
getSlotLeader - Returns the leader of the current slot
Request
Response

​getSlotLeaders

Retrieves the leaders for a specified range of slots. Parameters
​startSlot
integer
required
The starting slot to query for leaders.
​limit
integer
required
The maximum number of leaders to return.
Result
​result
array<string>
getSlotLeaders - Returns leaders for a specified range of slots
Request
Response

​getBlockProduction

Retrieves block production information. Parameters
​config
object
Configuration object for the query.
Result
​context
object
​value
object
Request
Response

​getInflationReward

Returns the inflation reward for a given address. Parameters
​addresses
array[string]
required
An array of public keys to query, as base-58 encoded strings.
​config
object
Configuration object for the query.
Result
​result
array<RpcInflationReward>
getInflationReward - Returns inflation rewards for given addresses
Request
Response

​getRecentPerformanceSamples

Returns the recent performance samples. Parameters
​limit
integer
The maximum number of samples to return.
Result
​result
array<RpcPerfSample>
getRecentPerformanceSamples - Returns recent performance samples
Request
Response

​getMaxRetransmitSlot

Returns the maximum retransmit slot. Result
​result
integer
getMaxRetransmitSlot - Returns maximum retransmit slot
Request
Response

​getMaxShredInsertSlot

Returns the maximum shred insert slot. Result
​result
integer
getMaxShredInsertSlot - Returns maximum shred insert slot
Request
Response

​minimumLedgerSlot

Returns the minimum ledger slot. Result
​result
integer
minimumLedgerSlot - Returns minimum ledger slot
Request
Response

​getBlock

Returns the block for a given slot. This sample needs a Surfnet that forks a cluster (the default). With --offline, a slot before the first local slot returns -32602. Parameters
​slot
integer
required
The slot to query for the block.
​config
object
Configuration object for the query.
Result
​blockHeight
integer
Block height
​blockTime
integer
Block time
​blockhash
string
Block hash
​parentSlot
integer
Parent slot
​previousBlockhash
string
Previous block hash
Request
Response

​getBlockTime

Returns the block time for a given slot. Parameters
​slot
integer
required
The slot to query for the block time.
Result
​result
integer
getBlockTime - Returns block time for a given slot
Request
Response

​getBlocks

Returns the blocks for a given range of slots. Surfnet does not keep a block history, so the list is often empty. Parameters
​startSlot
integer
required
The starting slot to query for blocks.
​wrapper
integer | RpcContextConfig
Wrapper for end slot or context configuration.
​config
object
Configuration object for the query.
Result
​result
array<integer>
getBlocks - Returns blocks for a range of slots
Request
Response

​getBlocksWithLimit

Returns the blocks for a given range of slots with a limit. Parameters
​startSlot
integer
required
The starting slot to query for blocks.
​limit
integer
required
The maximum number of blocks to return.
​config
object
Configuration object for the query.
Result
​result
array<integer>
getBlocksWithLimit - Returns blocks with limit
Request
Response

​getFirstAvailableBlock

Returns the first available block. Result
​result
integer
getFirstAvailableBlock - Returns first available block
Request
Response

​getLatestBlockhash

Returns the latest blockhash. Parameters
​config
object
Configuration object for the query.
Result
​context
object
​value
object
Request
Response

​isBlockhashValid

Returns the blockhash validity. Parameters
​blockhash
string
required
The blockhash to check, as a base-58 encoded string.
​config
object
Configuration object for the query.
Result
​context
object
​value
boolean
Request
Response

​getRecentPrioritizationFees

Returns the recent prioritization fees. Parameters
​pubkeys
array
An array of account public keys to query for prioritization fees, as base-58 encoded strings.
Result
​result
array<RpcPrioritizationFee>
getRecentPrioritizationFees - Returns recent prioritization fees
Request
Response

​getEpochInfo

Returns the epoch info. Parameters
​config
object
Configuration object for the query.
Result
​absoluteSlot
integer
Absolute root slot
​blockHeight
integer
Block height
​epoch
integer
Current epoch
​slotIndex
integer
Current slot index within the epoch
​slotsInEpoch
integer
Total number of slots in the epoch
​transactionCount
integer
Current transaction count
Request
Response

​getGenesisHash

Returns the genesis hash. Result
​result
string
getGenesisHash - Returns the genesis hash
Request
Response

​getSlot

Returns the current slot. Parameters
​config
object
Configuration object for the query.
Result
​context
object
​value
integer
Request
Response

​getBlockHeight

Returns the block height. Parameters
​config
object
Configuration object for the query.
Result
​context
object
​value
integer
Request
Response

​getHighestSnapshotSlot

Returns the highest snapshot slot. Surfnet does not produce snapshots, so this method returns the error shown below. Result
​full
integer
​incremental
integer
Request
Response

​getTransactionCount

Returns the transaction count. Parameters
​config
object
Configuration object for the query.
Result
​result
integer
getTransactionCount - Returns the transaction count
Request
Response

​getVersion

Returns the version of the cluster. Result
​feature-set
integer
​solana-core
string
​surfnet-version
string
Surfpool version running the Surfnet
Request
Response

​getLeaderSchedule

Returns the leader schedule. Surfnet has no leader schedule, so the result is an empty object. Parameters
​options
integer | RpcLeaderScheduleConfig
Wrapper for slot or configuration.
​config
object
Configuration object for the query.
Request
Response