DepositPreauth constructor

DepositPreauth({
  1. required String account,
  2. String? authorize,
  3. String? unauthorize,
  4. String signingPubKey = "",
  5. int? sequence,
  6. String? fee,
  7. int? lastLedgerSequence,
})

authorize Grant preauthorization to this address. You must provide this OR unauthorize but not both.

unauthorize Revoke preauthorization from this address. You must provide this OR authorize but not both.

Implementation

DepositPreauth({
  required super.account,
  this.authorize,
  this.unauthorize,
  super.signingPubKey,
  super.sequence,
  super.fee,
  super.lastLedgerSequence,
}) : super(transactionType: XRPLTransactionType.DEPOSIT_PREAUTH) {
  final err = _getError();
  assert(err == null, err);
}