SPLTokenProgram.revoke constructor

SPLTokenProgram.revoke({
  1. required SolAddress account,
  2. required SolAddress owner,
  3. SolAddress programId = SPLTokenProgramConst.tokenProgramId,
  4. 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);
}