#solana #wasm #clone-solana-instruction

no-std clone-solana-instruction

Types for directing the execution of Solana programs

1 stable release

new 2.2.1 Apr 28, 2025

#1801 in #solana

Download history 146/week @ 2025-04-27

146 downloads per month
Used in 117 crates (63 directly)

Apache-2.0

120KB
2K SLoC

Types for directing the execution of Solana programs.

Every invocation of a Solana program executes a single instruction, as defined by the Instruction type. An instruction is primarily a vector of bytes, the contents of which are program-specific, and not interpreted by the Solana runtime. This allows flexibility in how programs behave, how they are controlled by client software, and what data encodings they use.

Besides the instruction data, every account a program may read or write while executing a given instruction is also included in Instruction, as AccountMeta values. The runtime uses this information to efficiently schedule execution of transactions.

Dependencies

~0.2–6.5MB
~37K SLoC