HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Modulesolana-haskell-sdk-1.3.0.0GHC2021

Network.Solana.RPC.HTTP.Ledger

This module provides bindings to Solana JSON-RPC methods related to the ledger, including epoch and slot information, block leader schedules, genesis data, and transaction counts. It is useful for building explorers, monitoring tools, or protocols that depend on precise ledger state and validator schedule tracking.

  • 4 types
  • 12 values

getEpochInfo

3 declarations
valuegetEpochInfo :: JsonRpc m => m EpochInfo
#

Returns information about the current epoch.

This includes the current slot, block height, epoch index, and transaction count since genesis.

datadata EpochInfo
#

Contains information about the current epoch.

Constructors

Instances4Show, Generic, FromJSON, Rep

getEpochSchedule

2 declarations
datadata EpochSchedule
#

Contains epoch schedule information as defined in the cluster's genesis config.

Constructors

Instances4Show, Generic, FromJSON, Rep

getFirstAvailableBlock

1 declaration

getGenesisHash

1 declaration

getLeaderSchedule

2 declarations

Returns the leader schedule mapping validator identities to their leader slots.

Fetches the leader schedule for the epoch that contains the specified slot. If no slot is specified, the schedule for the current epoch is returned.

getMaxRetransmitSlot

1 declaration

getMaxShredInsertSlot

1 declaration

getSlot

1 declaration
valuegetSlot :: JsonRpc m => m Slot
#

Returns the current slot, based on the default or specified commitment level.

getSlotLeader

1 declaration

getSlotLeaders

1 declaration
valuegetSlotLeaders :: JsonRpc m => Slot -> Int -> m [SolanaPublicKey]
#

Returns the list of slot leaders for a given slot range.

Takes a starting Slot and a limit (between 1 and 5,000), and returns the validator identities that will produce blocks for the given slots.

getTransactionCount

1 declaration

minimumLedgerSlot

1 declaration