Access network-wide information like epoch data, inflation rates, and performance metrics.
getMinimumBalanceForRentExemption
Returns the minimum balance required for rent exemption.
Parameters
The account data length in bytes.
The commitment describes how finalized a block is at that point in time. Options are ‘processed’, ‘confirmed’, or ‘finalized’. Show properties Hide properties
The commitment describes how finalized a block is at that point in time. Options are ‘processed’, ‘confirmed’, or ‘finalized’
Result
getMinimumBalanceForRentExemption - Returns minimum balance for rent exemption
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getMinimumBalanceForRentExemption",
"params": [
0,
{
"commitment": "processed"
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : 890880
}
getInflationGovernor
Retrieves the inflation governor settings.
Parameters
The commitment describes how finalized a block is at that point in time. Options are ‘processed’, ‘confirmed’, or ‘finalized’. Show properties Hide properties
The commitment describes how finalized a block is at that point in time. Options are ‘processed’, ‘confirmed’, or ‘finalized’
Result
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getInflationGovernor",
"params": [
{
"commitment": "processed"
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"initial" : 0.08 ,
"terminal" : 0.015 ,
"taper" : 0.15 ,
"foundation" : 0.05 ,
"foundationTerm" : 7
}
}
getInflationRate
Retrieves the current inflation rate.
Result
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getInflationRate",
"params": []
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"total" : 0.07992883773599962 ,
"validator" : 0.07593239584919964 ,
"foundation" : 0.003996441886799981 ,
"epoch" : 1058
}
}
getEpochSchedule
Retrieves the epoch schedule.
Result
First normal-length epoch, if any
leaderScheduleSlotOffset Duration of leader schedule slot in each epoch
Number of slots in each epoch
Whether epochs start short and grow
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getEpochSchedule",
"params": []
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"slotsPerEpoch" : 432000 ,
"leaderScheduleSlotOffset" : 432000 ,
"warmup" : false ,
"firstNormalEpoch" : 0 ,
"firstNormalSlot" : 0
}
}
getSlotLeader
Retrieves the leader of the current slot.
Parameters
Configuration object for the query. Show properties Hide properties
The commitment describes how finalized a block is at that point in time. Options are ‘processed’, ‘confirmed’, or ‘finalized’
The minimum context slot for the context.
Result
getSlotLeader - Returns the leader of the current slot
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getSlotLeader",
"params": [
{
"commitment": "confirmed"
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : "SUrFPooLSUrFPooLSUrFPooLSUrFPooLSUrFPooLSUr"
}
getSlotLeaders
Retrieves the leaders for a specified range of slots.
Parameters
The starting slot to query for leaders.
The maximum number of leaders to return.
Result
getSlotLeaders - Returns leaders for a specified range of slots
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getSlotLeaders",
"params": [
0,
5
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : [
"SUrFPooLSUrFPooLSUrFPooLSUrFPooLSUrFPooLSUr"
]
}
getBlockProduction
Retrieves block production information.
Parameters
Configuration object for the query. Show properties Hide properties
The commitment describes how finalized a block is at that point in time. Options are ‘processed’, ‘confirmed’, or ‘finalized’. Show properties Hide properties
The commitment describes how finalized a block is at that point in time. Options are ‘processed’, ‘confirmed’, or ‘finalized’
Filter by validator identity, as a base-58 encoded string.
Slot range to query. Show properties Hide properties
The first slot to include in the range.
The last slot to include in the range.
Result
Show properties Hide properties
Show properties Hide properties
Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlockProduction",
"params": [
{
"commitment": "confirmed"
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254784 ,
"apiVersion" : "4.2.1"
},
"value" : {
"byIdentity" : {},
"range" : {
"firstSlot" : 457056000 ,
"lastSlot" : 457254784
}
}
}
}
getInflationReward
Returns the inflation reward for a given address.
Parameters
An array of public keys to query, as base-58 encoded strings.
Configuration object for the query. Show properties Hide properties
The commitment describes how finalized a block is at that point in time. Options are ‘processed’, ‘confirmed’, or ‘finalized’
The epoch number to query.
The minimum context slot for the epoch.
Result
getInflationReward - Returns inflation rewards for given addresses Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getInflationReward",
"params": [
[
"83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"
],
{
"commitment": "confirmed"
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : [
{
"epoch" : 1058 ,
"effectiveSlot" : 457254784 ,
"amount" : 0 ,
"postBalance" : 0 ,
"commission" : null
}
]
}
Returns the recent performance samples.
Parameters
The maximum number of samples to return.
Result
getRecentPerformanceSamples - Returns recent performance samples Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getRecentPerformanceSamples",
"params": [
0
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : []
}
getMaxRetransmitSlot
Returns the maximum retransmit slot.
Result
getMaxRetransmitSlot - Returns maximum retransmit slot
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getMaxRetransmitSlot",
"params": []
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : 457254784
}
getMaxShredInsertSlot
Returns the maximum shred insert slot.
Result
getMaxShredInsertSlot - Returns maximum shred insert slot
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getMaxShredInsertSlot",
"params": []
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : 457254784
}
minimumLedgerSlot
Returns the minimum ledger slot.
Result
minimumLedgerSlot - Returns minimum ledger slot
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "minimumLedgerSlot",
"params": []
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : 457185054
}
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
The slot to query for the block.
Configuration object for the query. Show properties Hide properties
The commitment describes how finalized a block is at that point in time. Options are ‘processed’, ‘confirmed’, or ‘finalized’. Show properties Hide properties
The commitment describes how finalized a block is at that point in time. Options are ‘processed’, ‘confirmed’, or ‘finalized’
Encoding for transaction data.
maxSupportedTransactionVersion The maximum transaction version to support.
Whether to return rewards.
Level of transaction detail to return.
Result
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlock",
"params": [
1,
{
"encoding": "json",
"maxSupportedTransactionVersion": 0,
"rewards": false,
"transactionDetails": "signatures"
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"previousBlockhash" : "4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZAMdL4VZHirAn" ,
"blockhash" : "AcknnkY4ok5BZuk69WijDETKVRUPZoMtniZHMe4ZaK1e" ,
"parentSlot" : 0 ,
"signatures" : [
"39V8tR2Q8Ar3WwMBfVTRPFr7AakLHy5wp7skJNBL7ET6ARoikqc1TaMiuXEtHiNPLQKoeiVr5XnKH8QtjdonN4yM" ,
"4hPVA21e1KLQsEQkpSHk1UfkBBUfotajpkqESuV4tgqEdtEyDufaczAdZzSLexLhjytczDdSUFgwCTancgUWFzym" ,
"FAWA66fudpiwdRDDQ4DRxdJsRvawvauwg4vQkm98ZHFpXmW5N7xzRiTRpt8QiZ19s1aVbzKgXW6kEZanwHeDFNS"
],
"blockTime" : null ,
"blockHeight" : null
}
}
getBlockTime
Returns the block time for a given slot.
Parameters
The slot to query for the block time.
Result
getBlockTime - Returns block time for a given slot
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlockTime",
"params": [
1
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : null
}
getBlocks
Returns the blocks for a given range of slots.
Surfnet does not keep a block history, so the list is often empty.
Parameters
The starting slot to query for blocks.
Wrapper for end slot or context configuration.
Configuration object for the query. Show properties Hide properties
The commitment describes how finalized a block is at that point in time. Options are ‘processed’, ‘confirmed’, or ‘finalized’
The minimum context slot for the context.
Result
getBlocks - Returns blocks for a range of slots
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlocks",
"params": [
0,
10
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : [
0 ,
1 ,
2
]
}
getBlocksWithLimit
Returns the blocks for a given range of slots with a limit.
Parameters
The starting slot to query for blocks.
The maximum number of blocks to return.
Configuration object for the query. Show properties Hide properties
The commitment describes how finalized a block is at that point in time. Options are ‘processed’, ‘confirmed’, or ‘finalized’
The minimum context slot for the context.
Result
getBlocksWithLimit - Returns blocks with limit
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlocksWithLimit",
"params": [
0,
10
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : [
457254525 ,
457254526 ,
457254527
]
}
getFirstAvailableBlock
Returns the first available block.
Result
getFirstAvailableBlock - Returns first available block
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getFirstAvailableBlock",
"params": []
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : 0
}
getLatestBlockhash
Returns the latest blockhash.
Parameters
Configuration object for the query. Show properties Hide properties
The commitment describes how finalized a block is at that point in time. Options are ‘processed’, ‘confirmed’, or ‘finalized’
The minimum context slot for the context.
Result
Show properties Hide properties
Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getLatestBlockhash",
"params": [
{
"commitment": "confirmed"
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254785 ,
"apiVersion" : "4.2.1"
},
"value" : {
"blockhash" : "SURFNETxSAFEHASHxxxxxxxxxxxxxxxxxxxxxxxx1x6" ,
"lastValidBlockHeight" : 413
}
}
}
isBlockhashValid
Returns the blockhash validity.
Parameters
The blockhash to check, as a base-58 encoded string.
Configuration object for the query. Show properties Hide properties
The commitment describes how finalized a block is at that point in time. Options are ‘processed’, ‘confirmed’, or ‘finalized’
The minimum context slot for the context.
Result
Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "isBlockhashValid",
"params": [
"EkSnNWid2cvwEVnVx9aBqawnmiCNiDgp3gUdkDPTKN1N",
{
"commitment": "processed"
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"context" : {
"slot" : 457254786 ,
"apiVersion" : "4.2.1"
},
"value" : false
}
}
getRecentPrioritizationFees
Returns the recent prioritization fees.
Parameters
An array of account public keys to query for prioritization fees, as base-58 encoded strings.
Result
getRecentPrioritizationFees - Returns recent prioritization fees Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getRecentPrioritizationFees",
"params": [
[]
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : []
}
getEpochInfo
Returns the epoch info.
Parameters
Configuration object for the query. Show properties Hide properties
The commitment describes how finalized a block is at that point in time. Options are ‘processed’, ‘confirmed’, or ‘finalized’
The minimum context slot for the context.
Result
Current slot index within the epoch
Total number of slots in the epoch
Current transaction count
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getEpochInfo",
"params": [
{
"commitment": "confirmed"
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"epoch" : 1058 ,
"slotIndex" : 198786 ,
"slotsInEpoch" : 432000 ,
"absoluteSlot" : 457254786 ,
"blockHeight" : 263 ,
"transactionCount" : 1
}
}
getGenesisHash
Returns the genesis hash.
Result
getGenesisHash - Returns the genesis hash
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getGenesisHash",
"params": []
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : "5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d"
}
getSlot
Returns the current slot.
Parameters
Configuration object for the query. Show properties Hide properties
The commitment describes how finalized a block is at that point in time. Options are ‘processed’, ‘confirmed’, or ‘finalized’
The minimum context slot for the context.
Result
Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getSlot",
"params": [
{
"commitment": "confirmed"
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : 457254785
}
getBlockHeight
Returns the block height.
Parameters
Configuration object for the query. Show properties Hide properties
The commitment describes how finalized a block is at that point in time. Options are ‘processed’, ‘confirmed’, or ‘finalized’
The minimum context slot for the context.
Result
Show properties Hide properties
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getBlockHeight",
"params": [
{
"commitment": "confirmed"
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : 262
}
getHighestSnapshotSlot
Returns the highest snapshot slot.
Surfnet does not produce snapshots, so this method returns the error shown below.
Result
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getHighestSnapshotSlot",
"params": []
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"error" : {
"code" : -32008 ,
"message" : "No snapshot"
}
}
getTransactionCount
Returns the transaction count.
Parameters
Configuration object for the query. Show properties Hide properties
The commitment describes how finalized a block is at that point in time. Options are ‘processed’, ‘confirmed’, or ‘finalized’
The minimum context slot for the context.
Result
getTransactionCount - Returns the transaction count
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getTransactionCount",
"params": [
{
"commitment": "confirmed"
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : 1
}
getVersion
Returns the version of the cluster.
Result
Surfpool version running the Surfnet
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getVersion",
"params": []
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {
"surfnet-version" : "1.6.1" ,
"solana-core" : "4.2.1" ,
"feature-set" : 565236538
}
}
getLeaderSchedule
Returns the leader schedule.
Surfnet has no leader schedule, so the result is an empty object.
Parameters
Wrapper for slot or configuration.
Configuration object for the query. Show properties Hide properties
The commitment describes how finalized a block is at that point in time. Options are ‘processed’, ‘confirmed’, or ‘finalized’. Show properties Hide properties
The commitment describes how finalized a block is at that point in time. Options are ‘processed’, ‘confirmed’, or ‘finalized’
Filter by validator identity.
curl http://127.0.0.1:8899 -s -X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getLeaderSchedule",
"params": [
null,
{
"commitment": "confirmed"
}
]
}
'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {}
}