ManageBuyOfferOperation class

Represents ManageBuyOffer operation. See: List of Operations

Inheritance

Constructors

ManageBuyOfferOperation(Asset selling, Asset buying, String amount, String price, String offerId)
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). offerId set to "0" for a new offer, otherwise the id of the offer to be changed or removed.

Properties

amount String
Amount of selling being sold.
read-only
buying Asset
The asset being bought in this operation
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
offerId String
The ID of the offer.
read-only
price String
Price of 1 unit of selling in terms of buying.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selling Asset
The asset being sold in this operation
read-only
sourceAccount MuxedAccount
Returns the operation source account.
read / write, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toOperationBody() XdrOperationBody
Generates OperationBody XDR object.
override
toString() String
A string representation of this object. [...]
inherited
toXdr() XdrOperation
inherited
toXdrBase64() String
Returns base64-encoded Operation XDR object from this operation.
inherited

Operators

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

Static Methods

builder(XdrManageBuyOfferOp op) ManageBuyOfferOperationBuilder
Construct a new CreateAccount builder from a CreateAccountOp XDR.