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.Sysvar

This module provides convenient access to Solana's sysvars, special accounts that store critical state data of the blockchain. These sysvars provide real-time data such as the current slot, epoch schedules, fee rates, recent blockhashes, and more. They are frequently referenced by Solana programs to obtain necessary blockchain information during transaction execution.

Synopsis

The Clock sysvar contains data on cluster time, including the current slot, epoch, and estimated wall-clock Unix timestamp. It is updated every slot.

The EpochSchedule sysvar contains epoch scheduling constants that are set in genesis, and enables calculating the number of slots in a given epoch, the epoch for a given slot, etc.

The Fees sysvar contains the fee calculator for the current slot. It is updated every slot, based on the fee-rate governor.

The Instructions sysvar contains the serialized instructions in a Message while that Message is being processed. This allows program instructions to reference other instructions in the same transaction.

The StakeHistory sysvar contains the history of cluster-wide stake activations and de-activations per epoch. It is updated at the start of every epoch.

The EpochRewards sysvar holds a record of epoch rewards distribution in Solana, including block rewards and staking rewards.