Instruction constructor
const
Instruction({
- required Ed25519HDPublicKey programId,
- required List<
AccountMeta> accounts, - required ByteArray data,
Construct a generic instruction for the programId program with
accounts. These accounts will be interpreted by the specific program
with id programId.
Some programs take specific data. You can provide raw 8bit bytes arrays
with the data parameter.
Implementation
const Instruction({required this.programId, required this.accounts, required this.data});