#atlas #instructions #programs #sysvar #introspection #serialization

atlas-instructions-sysvar

Type for instruction introspection during execution of Atlas programs

1 stable release

3.0.0 Sep 1, 2025

#14 in #sysvar

Download history 84/week @ 2025-08-27 60/week @ 2025-09-03 42/week @ 2025-09-10 23/week @ 2025-09-17 39/week @ 2025-09-24 31/week @ 2025-10-01 31/week @ 2025-10-08 51/week @ 2025-10-15 41/week @ 2025-10-22 14/week @ 2025-10-29 12/week @ 2025-11-05 12/week @ 2025-11-12 11/week @ 2025-11-19 23/week @ 2025-11-26 17/week @ 2025-12-03 15/week @ 2025-12-10

69 downloads per month
Used in 18 crates (5 directly)

MIT license

27KB
498 lines

The serialized instructions of the current transaction.

The instructions sysvar provides access to the serialized instruction data for the currently-running transaction. This allows for instruction introspection, which is required for correctly interoperating with native programs like the secp256k1 and ed25519 programs.

Unlike other sysvars, the data in the instructions sysvar is not accessed through a type that implements the Sysvar trait. Instead, the instruction sysvar is accessed through several free functions within this module.

See also the Atlas documentation on the instructions sysvar.

Examples

For a complete example of how the instructions sysvar is used see the documentation for secp256k1_instruction in the atlas-sdk crate.

Dependencies

~3–4.5MB
~94K SLoC