HORIZON HASKELLDocslts/ghc-9.14.x99ffbb82026-10-19Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 99ffbb8 · 2026-10-19

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.

Contents
  1. getEpochInfo
  2. getEpochSchedule
  3. getFirstAvailableBlock
  4. getGenesisHash
  5. getLeaderSchedule
  6. getMaxRetransmitSlot
  7. getMaxShredInsertSlot
  8. getSlot
  9. getSlotLeader
  10. getSlotLeaders
  11. getTransactionCount
  12. minimumLedgerSlot
Synopsis

getEpochInfo

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

datadata EpochSchedule

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

Constructors

Instances4Show, Generic, FromJSON, Rep

getFirstAvailableBlock

getGenesisHash

getLeaderSchedule

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

getMaxShredInsertSlot

getSlot

getSlotLeader

getSlotLeaders

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

minimumLedgerSlot