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_id
except that it reports that this ID has been deprecated. - declare_
deprecated_ sysvar_ id - Same as
declare_sysvar_id
except that it reports that this ID has been deprecated. - declare_
id - Re-export types required for macros Convenience macro to declare a static public key and functions to interact with it.
- declare_
sysvar_ id - Declares an ID that implements
SysvarId
.
Structs§
- Pubkey
- Re-export types required for macros The address of a Solana account.
Constants§
- ID
- The const program ID.
Traits§
- Sysvar
Id - A type that holds sysvar data and has an associated sysvar
Pubkey
.