SPLTokenProgram.fromBytes constructor

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

Implementation

factory SPLTokenProgram.fromBytes({
  required List<AccountMeta> keys,
  required List<int> instructionBytes,
  SolAddress programId = SPLTokenProgramConst.tokenProgramId,
}) {
  return SPLTokenProgram(
      layout: SPLTokenProgramLayout.fromBytes(instructionBytes),
      keys: keys,
      programId: programId);
}