SPLTokenProgram.freezeAccount constructor
SPLTokenProgram.freezeAccount({
- required SolAddress account,
- required SolAddress mint,
- required SolAddress authority,
- SolAddress programId = SPLTokenProgramConst.tokenProgramId,
- List<
SolAddress> multiSigners = const [],
Freeze an Initialized account.
Implementation
factory SPLTokenProgram.freezeAccount({
/// 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: SPLTokenFreezAccountLayout(),
keys: SPLTokenUtils.buildKeys(keys: [
account.toWritable(),
mint.toReadOnly(),
], owner: authority, multiSigners: multiSigners),
programId: programId);
}