SPLTokenProgram.revoke constructor
SPLTokenProgram.revoke({
- required SolAddress account,
- required SolAddress owner,
- SolAddress programId = SPLTokenProgramConst.tokenProgramId,
- List<
SolAddress> multiSigners = const [],
Revokes the delegate's authority.
Implementation
factory SPLTokenProgram.revoke({
/// The source account.
required SolAddress account,
/// The source account's multisignature owner.
required SolAddress owner,
SolAddress programId = SPLTokenProgramConst.tokenProgramId,
/// Multisignature owner
List<SolAddress> multiSigners = const [],
}) {
return SPLTokenProgram(
layout: SPLTokenRevokeLayout(),
keys: SPLTokenUtils.buildKeys(keys: [
account.toWritable(),
], owner: owner, multiSigners: multiSigners),
programId: programId);
}