网络

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
"processed" | "confirmed" | "finalized"The 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": [
    0,
    {
      "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
"processed" | "confirmed" | "finalized"The 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": "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
"processed" | "confirmed" | "finalized"The 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": [
    {
      "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": [
    123456789,
    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
"processed" | "confirmed" | "finalized"The 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": [
    {
      "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
"processed" | "confirmed" | "finalized"The 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": [
    [
      "83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"
    ],
    {
      "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": [
    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
"processed" | "confirmed" | "finalized"The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
└encoding
"binary" | "base58" | "base64" | "json" | "jsonParsed" | "base64+zstd"Encoding for transaction data.
└maxSupportedTransactionVersion
integerThe maximum transaction version to support.
└rewards
booleanWhether to return rewards.
└transactionDetails
"full" | "accounts" | "signatures" | "none"Level 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": [
    123456789,
    {
      "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": [
    123456789
  ]
}

getBlocks

Returns the blocks for a given range of slots.

Parameters
NameTypeDescription
startSlot*
integerThe starting slot to query for blocks.
wrapper
integer | RpcContextConfigWrapper for end slot or context configuration.
config
objectConfiguration object for the query.
└commitment
"processed" | "confirmed" | "finalized"The 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": [
    123456789,
    0,
    {
      "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
"processed" | "confirmed" | "finalized"The 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": [
    123456789,
    0,
    {
      "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
"processed" | "confirmed" | "finalized"The 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": [
    {
      "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
"processed" | "confirmed" | "finalized"The 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": [
    "EkSnNWid2cvwEVnVx9aBqawnmiCNiDgp3gUdkDPTKN1N",
    {
      "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": [
    []
  ]
}

getEpochInfo

Returns the epoch info.

Parameters
NameTypeDescription
config
objectConfiguration object for the query.
└commitment
"processed" | "confirmed" | "finalized"The 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": [
    {
      "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
"processed" | "confirmed" | "finalized"The 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": [
    {
      "commitment": "processed",
      "minContextSlot": 123456789
    }
  ]
}

getBlockHeight

Returns the block height.

Parameters
NameTypeDescription
config
objectConfiguration object for the query.
└commitment
"processed" | "confirmed" | "finalized"The 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": [
    {
      "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
"processed" | "confirmed" | "finalized"The 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": [
    {
      "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
integer | RpcLeaderScheduleConfigWrapper 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
"processed" | "confirmed" | "finalized"The 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": [
    0,
    {
      "commitment": {
        "commitment": "processed"
      },
      "identity": "<some-identity>"
    }
  ]
}

Is this page helpful?

©️ 2026 Solana 基金会版权所有