OfferCreate constructor

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

takerGets The amount and type of currency being provided by the sender of this transaction takerPays The amount and type of currency the sender of this transaction wants in exchange for the full taker_gets amount. expiration Time after which the offer is no longer active offerSequence The Sequence number (or Ticket number) of a previous OfferCreate to cancel when placing this Offer

Implementation

OfferCreate({
  required super.account,
  required this.takerGets,
  required this.takerPays,
  super.memos,
  super.ticketSequance,
  this.expiration,
  this.offerSequence,
  super.signingPubKey,
  super.sequence,
  super.fee,
  super.lastLedgerSequence,
}) : super(transactionType: XRPLTransactionType.OFFER_CREATE);