SPLTokenMetaDataProgram.fromBytes constructor

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

Implementation

factory SPLTokenMetaDataProgram.fromBytes({
  required List<AccountMeta> keys,
  required List<int> instructionBytes,
  required SolAddress programId,
}) {
  return SPLTokenMetaDataProgram(
      layout: SPLTokenMetaDataProgramLayout.fromBytes(instructionBytes),
      keys: keys,
      programId: programId);
}