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§
- Re-export types required for macros Same as
declare_id
except that it reports that this ID has been deprecated. - Same as
declare_sysvar_id
except that it reports that this ID has been deprecated. - Re-export types required for macros Convenience macro to declare a static public key and functions to interact with it.
- Declares an ID that implements
SysvarId
.
Structs§
- Re-export types required for macros The address of a Solana account.
Constants§
- The const program ID.
Traits§
- A type that holds sysvar data and has an associated sysvar
Pubkey
.
Functions§
- Returns
true
if given pubkey is the program ID. - Returns the program ID.