SPLTokenProgram.thawAccount constructor

SPLTokenProgram.thawAccount({
  1. required SolAddress account,
  2. required SolAddress mint,
  3. required SolAddress authority,
  4. SolAddress programId = SPLTokenProgramConst.tokenProgramId,
  5. List<SolAddress> multiSigners = const [],
})

Thaw a Frozen account.

Implementation

factory SPLTokenProgram.thawAccount({
  /// The account to freeze.
  required SolAddress account,

  /// The token mint.
  required SolAddress mint,

  /// The mint freeze authority.
  required SolAddress authority,
  SolAddress programId = SPLTokenProgramConst.tokenProgramId,

  /// Multisignature owner
  List<SolAddress> multiSigners = const [],
}) {
  return SPLTokenProgram(
      layout: SPLTokenThawAccountLayout(),
      keys: SPLTokenUtils.buildKeys(keys: [
        account.toWritable(),
        mint.toReadOnly(),
      ], owner: authority, multiSigners: multiSigners),
      programId: programId);
}