Module sysvar

Source

Modules§

clock
Information about the network’s clock, ticks, slots, etc.
epoch_rewards
Epoch rewards for current epoch
epoch_schedule
Information about epoch duration.
fees
Current cluster fees.
instructions
last_restart_slot
Information about the last restart slot (hard fork).
recent_blockhashes
Information about recent blocks and their fee calculators.
rent
Configuration for network rent.
rewards
This sysvar is deprecated and unused.
slot_hashes
The most recent hashes of a slot’s parent banks.
slot_history
A bitvector of slots present over the last epoch.
stake_history
History of stake activations and de-activations.

Macros§

declare_deprecated_sysvar_id
Same as declare_sysvar_id except that it reports that this ID has been deprecated.
declare_sysvar_id
Declares an ID that implements SysvarId.

Structs§

ALL_IDSDeprecated

Constants§

ID
The const program ID.

Traits§

Sysvarbincode
A type that holds sysvar data.
SysvarId
A type that holds sysvar data and has an associated sysvar Pubkey.

Functions§

check_id
Returns true if given pubkey is the program ID.
id
Returns the program ID.
is_sysvar_idDeprecated
Returns true of the given Pubkey is a sysvar account.