SPLTokenSwapProgram.fromBytes constructor

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

Implementation

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