OfferService class

Client class to handle offer-related operations with the Haveno Daemon.

This class provides methods to interact with the Haveno network to manage trade offers, including fetching peer offers, fetching user's offers, posting new offers, canceling existing offers, and editing offers.

Constructors

OfferService()
Constructs an OfferService instance with the given HavenoChannel.

Properties

hashCode int
The hash code for this object.
no setterinherited
havenoChannel HavenoChannel
Client used to communicate with the Haveno Daemon.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelOffer(String offerId) Future<void>
Cancels an existing offer on the Haveno network.
editOffer({required String offerId, double? marketPriceMarginPct, String? triggerPrice}) Future<void>
Edits an existing offer on the Haveno network.
getAllOffers() Future<void>
Fetches all offers from the Haveno network.
getMyOffers() Future<List<OfferInfo>>
Fetches the user's own offers from the Haveno network.
getPeerOffers() Future<List<OfferInfo>>
Fetches the list of offers from peers on the Haveno network.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postOffer({required String currencyCode, required String direction, required String price, required bool useMarketBasedPrice, double? marketPriceMarginPct, required Int64 amount, required Int64 minAmount, required double buyerSecurityDepositPct, String? triggerPrice, required bool reserveExactAmount, required String paymentAccountId}) Future<OfferInfo>
Posts a new offer to the Haveno network.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited