Expand description
Access to special accounts with dynamically-updated data.
Sysvars are special accounts that contain dynamically-updated data about the
network cluster, the blockchain history, and the executing transaction. Each
sysvar is defined in its own crate. The clock, epoch_schedule,
instructions, and rent sysvars are most useful to on-chain programs.
All sysvar accounts are owned by the account identified by solana_sysvar::ID.
For more details see the Solana documentation on sysvars.
Macros§
- declare_
deprecated_ id - Re-export types required for macros
Same as
declare_idexcept that it reports that this ID has been deprecated. - declare_
deprecated_ sysvar_ id - Same as
declare_sysvar_idexcept that it reports that this ID has been deprecated. - declare_
id - Re-export types required for macros Convenience macro to declare a static address and functions to interact with it.
- declare_
sysvar_ id - Declares an ID that implements
SysvarId. - impl_
deprecated_ sysvar_ id - Implements
SysvarIdfor a module that already uses `declare_deprecated_id`` - impl_
sysvar_ id - Implements
SysvarIdfor a module that already uses `declare_id``
Structs§
- Address
- Re-export types required for macros The address of a Solana account.
Constants§
- ID
- Re-export types required for macros The const program ID.
Traits§
- Sysvar
Id - A type that holds sysvar data and has an associated sysvar
Address.