Returns information about the current epoch.
This includes the current slot, block height, epoch index, and transaction count since genesis.
:: a typeCtrl KGHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12
Modulesolana-haskell-sdk-1.3.0.0GHC2021
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.
Returns information about the current epoch.
This includes the current slot, block height, epoch index, and transaction count since genesis.
Solana epoch index.
Contains information about the current epoch.
EpochInfoabsoluteSlot :: SlotThe current absolute slot.
blockHeight :: Word64The current block height.
epoch :: EpochThe current epoch index.
slotIndex :: Word64Slot index relative to the start of the epoch.
slotsInEpoch :: Word64Total number of slots in the epoch.
transactionCount :: Maybe Word64Total number of successful transactions since genesis.
Show EpochInfoDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.RPC.HTTP.LedgerGeneric EpochInfoDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.RPC.HTTP.LedgerFromJSON EpochInfoDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.RPC.HTTP.Ledgertype Rep EpochInfo = D1 ('MetaData "EpochInfo"
"Network.Solana.RPC.HTTP.Ledger"
"solana-haskell-sdk-1.3.0.0-JMJNnl7jmEh90dthY33ZzW"
'False) (C1 ('MetaCons "EpochInfo"
'PrefixI 'True) ((S1 ('MetaSel ('Just "absoluteSlot"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Slot) :*: (S1 ('MetaSel ('Just "blockHeight"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64) :*: S1 ('MetaSel ('Just "epoch"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Epoch))) :*: (S1 ('MetaSel ('Just "slotIndex"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64) :*: (S1 ('MetaSel ('Just "slotsInEpoch"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64) :*: S1 ('MetaSel ('Just "transactionCount"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Word64))))))Defined in solana-haskell-sdk-1.3.0.0 · Network.Solana.RPC.HTTP.LedgerReturns the epoch scheduling parameters configured in the cluster's genesis configuration.
Contains epoch schedule information as defined in the cluster's genesis config.
EpochScheduleslotsPerEpoch :: Word64Maximum number of slots per epoch.
leaderScheduleSlotOffset :: Word64Number of slots before epoch start to compute leader schedule.
warmup :: BoolWhether epochs start small and grow (warmup).
firstNormalEpoch :: Word64First normal-length epoch.(log2(slotsPerEpoch) - log2(MINIMUM_SLOTS_PER_EPOCH))
firstNormalSlot :: Word64First slot of the first normal-length epoch. ( MINIMUM_SLOTS_PER_EPOCH * (2.pow(firstNormalEpoch) - 1))
Show EpochScheduleDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.RPC.HTTP.LedgerGeneric EpochScheduleDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.RPC.HTTP.LedgerFromJSON EpochScheduleDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.RPC.HTTP.Ledgertype Rep EpochSchedule = D1 ('MetaData "EpochSchedule"
"Network.Solana.RPC.HTTP.Ledger"
"solana-haskell-sdk-1.3.0.0-JMJNnl7jmEh90dthY33ZzW"
'False) (C1 ('MetaCons "EpochSchedule"
'PrefixI 'True) ((S1 ('MetaSel ('Just "slotsPerEpoch"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64) :*: S1 ('MetaSel ('Just "leaderScheduleSlotOffset"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "warmup"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "firstNormalEpoch"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64) :*: S1 ('MetaSel ('Just "firstNormalSlot"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))))Defined in solana-haskell-sdk-1.3.0.0 · Network.Solana.RPC.HTTP.LedgerReturns the slot of the lowest confirmed block that has not been purged from the ledger.
Returns the block hash of the genesis block.
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.
Map from validator identity pubkeys to arrays of slot indices indicating when each validator is expected to produce a block.
Returns the highest slot observed by the node from the retransmit stage.
Returns the highest slot observed by the node after shred insertion.
Returns the current slot, based on the default or specified commitment level.
Returns the identity public key of the current slot leader.
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.
Returns the total number of transactions recorded in the ledger.
Returns the lowest slot that the node has information about in its ledger.