SPLTokenProgram.thawAccount constructor
SPLTokenProgram.thawAccount({
- required SolAddress account,
- required SolAddress mint,
- required SolAddress authority,
- SolAddress programId = SPLTokenProgramConst.tokenProgramId,
- 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);
}