EscrowFinish constructor

EscrowFinish({
  1. required String account,
  2. required String owner,
  3. required int offerSequence,
  4. List<XRPLMemo>? memos = const [],
  5. int? ticketSequance,
  6. String? condition,
  7. String? fulfillment,
  8. String signingPubKey = "",
  9. int? sequence,
  10. String? fee,
  11. int? lastLedgerSequence,
})

owner The source account that funded the Escrow. offerSequence Transaction sequence (or Ticket number) of the EscrowCreate transaction that created the Escrow. condition The previously-supplied PREIMAGE-SHA-256 crypto-condition of the Escrow, if any, as hexadecimal. fulfillment The previously-supplied PREIMAGE-SHA-256 crypto-condition fulfillment of the Escrow, if any, as hexadecimal.

Implementation

EscrowFinish({
  required super.account,
  required this.owner,
  required this.offerSequence,
  super.memos,
  super.ticketSequance,
  this.condition,
  this.fulfillment,
  super.signingPubKey,
  super.sequence,
  super.fee,
  super.lastLedgerSequence,
})  : assert(() {
        if ((condition == null && fulfillment != null) ||
            (condition != null && fulfillment == null)) {
          return false;
        }
        return true;
      }(), "condition and fulfillment must both be specified."),
      super(transactionType: XRPLTransactionType.ESCROW_FINISH);