Expand description
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.
Re-exports§
pub use account_meta::AccountMeta;
std
Modules§
- account_
meta - error
- wasm
std
and WebAssembly - The
Instructions
struct is a legacy workaround from when wasm-bindgen lacked Vecsupport (ref: https://github.com/rustwasm/wasm-bindgen/issues/111)
Structs§
- Borrowed
Account Meta - Borrowed version of
AccountMeta
. - Borrowed
Instruction std
- Borrowed version of
Instruction
. - Instruction
std
and WebAssembly - wasm-bindgen version of the Instruction struct. This duplication is required until https://github.com/rustwasm/wasm-bindgen/issues/3671 is fixed. This must not diverge from the regular non-wasm Instruction struct.
- Processed
Sibling Instruction - Use to query and convey information about the sibling instruction components
when calling the
sol_get_processed_sibling_instruction
syscall.