#solana #sysvar #clone-solana-sysvar-id

clone-solana-sysvar-id

Definition for the sysvar id trait and associated macros

1 stable release

2.2.1 Apr 28, 2025

#772 in Magic Beans

Download history 137/week @ 2025-04-28

137 downloads per month
Used in 71 crates (14 directly)

Apache-2.0

76KB
1K SLoC

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 clone_solana_sysvar::ID.

For more details see the Solana documentation on sysvars.

Dependencies

~0.2–5.5MB
~15K SLoC