Instruction Structure
The three fields (program_id, accounts, data), AccountMeta, and compiled
instructions, with a SOL transfer example.
Instruction Introspection
How programs read the other instructions in their transaction via the
Instructions sysvar.
Key facts
- Single program: Each instruction targets exactly one program via
program_id. - Account metadata: The
accountsarray has anAccountMetafor every account the instruction reads or writes. - Opaque data: The
datafield is a byte array whose format is defined by the target program.