Instruction constructor

const Instruction({
  1. required Ed25519HDPublicKey programId,
  2. required List<AccountMeta> accounts,
  3. 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,
});