SystemProgram.fromBytes constructor

SystemProgram.fromBytes({
  1. required List<AccountMeta> keys,
  2. required List<int> instructionBytes,
  3. SolAddress programId = SystemProgramConst.programId,
})

Implementation

factory SystemProgram.fromBytes({
  required List<AccountMeta> keys,
  required List<int> instructionBytes,
  SolAddress programId = SystemProgramConst.programId,
}) {
  return SystemProgram(
      layout: SystemProgramLayout.fromBytes(instructionBytes),
      keys: keys,
      programId: programId);
}