ManageBuyOfferOperationBuilder class
Constructors
-
ManageBuyOfferOperationBuilder(Asset selling,
Asset buying, String amount, String price ) -
Creates a new ManageSellOffer builder. If you want to update existing offer use ManageBuyOfferOperationBuilder.setOfferId.
The operation creates, updates, or deletes an offer to buy one asset for another, otherwise known as a "bid" order on a traditional orderbook:
selling
is the asset the offer creator is selling.buying
is the asset the offer creator is buying.amount
is the amount of buying being bought. Set to 0 if you want to delete an existing offer.price
is the price of 1 unit of buying in terms of selling. (e.g. "0.1" => pay up to 0.1 asset selling for 1 unit asset of buying).
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
build(
) → ManageBuyOfferOperation - Builds a ManageBuyOfferOperation.
-
noSuchMethod(
Invocation invocation ) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
setMuxedSourceAccount(
MuxedAccount sourceAccount ) → ManageBuyOfferOperationBuilder - Sets the muxed source account for this operation.
-
setOfferId(
String offerId ) → ManageBuyOfferOperationBuilder -
Sets offer ID.
0
creates a new offer. Set to existing offer ID to change it. -
setSourceAccount(
String sourceAccount ) → ManageBuyOfferOperationBuilder - Sets the source account for this operation.
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other ) → bool -
The equality operator. [...]
inherited