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.
no setter
buying Asset
The asset being bought in this operation
no setter
hashCode int
The hash code for this object.
no setterinherited
offerId String
The ID of the offer.
no setter
price String
Price of 1 unit of selling in terms of buying.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selling Asset
The asset being sold in this operation
no setter
sourceAccount MuxedAccount?
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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.