SPLTokenProgram.fromBytes constructor
SPLTokenProgram.fromBytes({
- required List<
AccountMeta> keys, - required List<
int> instructionBytes, - 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);
}