Package org.xrpl.xrpl4j.model.ledger
Interface OfferObject
- All Superinterfaces:
LedgerObject
- All Known Implementing Classes:
ImmutableOfferObject
The Offer object type describes an offer to exchange currencies, more traditionally known as an order.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.xrpl.xrpl4j.model.ledger.LedgerObject
LedgerObject.LedgerEntryType -
Method Summary
Modifier and TypeMethodDescriptionaccount()The sender of theOfferObject.An additional list of order book directories that this offer belongs to.The ID of the Offer Directory that links to this offer.bookNode()A hint indicating which page of the offer directory links to this object, in case the directory consists of multiple pages.static ImmutableOfferObject.Builderbuilder()Construct a builder for this class.domainId()The permissioned domain that the offer is part of.Optional<com.google.common.primitives.UnsignedInteger> Indicates the time after which this offer is considered expired, in seconds since the Ripple Epoch.flags()A bit-map of boolean flags.index()The unique ID of theOfferObject.default LedgerObject.LedgerEntryTypeThe value 0x006F, mapped to the string "Offer", indicates that this object is aOfferObjectobject.A hint indicating which page of the sender's owner directory links to this object, in case the directory consists of multiple pages.The identifying hash of the transaction that most recently modified this object.com.google.common.primitives.UnsignedIntegerThe index of the ledger that contains the transaction that most recently modified this object.com.google.common.primitives.UnsignedIntegersequence()The sequence number of theOfferCreatetransaction that created this offer.The remaining amount and type of currency being provided by the offer creator.The remaining amount and type of currency requested by the offer creator.
-
Method Details
-
builder
Construct a builder for this class.- Returns:
- An
ImmutableOfferObject.Builder.
-
ledgerEntryType
The value 0x006F, mapped to the string "Offer", indicates that this object is aOfferObjectobject.- Returns:
- Always
LedgerObject.LedgerEntryType.OFFER.
-
account
Address account()The sender of theOfferObject. Cashing theOfferObjectdebits this address's balance.- Returns:
- The
Addressof the offer sender.
-
flags
OfferFlags flags()A bit-map of boolean flags.- Returns:
- A
OfferFlags.
-
sequence
com.google.common.primitives.UnsignedInteger sequence()The sequence number of theOfferCreatetransaction that created this offer.- Returns:
- An
UnsignedIntegerrepresenting the sequence number.
-
takerPays
CurrencyAmount takerPays()The remaining amount and type of currency requested by the offer creator.- Returns:
- A
CurrencyAmount.
-
takerGets
CurrencyAmount takerGets()The remaining amount and type of currency being provided by the offer creator.- Returns:
- A
CurrencyAmount.
-
bookDirectory
Hash256 bookDirectory()The ID of the Offer Directory that links to this offer.- Returns:
- A
Hash256containing the ID.
-
bookNode
String bookNode()A hint indicating which page of the offer directory links to this object, in case the directory consists of multiple pages.- Returns:
- A
Stringcontaining the hint.
-
ownerNode
String ownerNode()A hint indicating which page of the sender's owner directory links to this object, in case the directory consists of multiple pages. Note: The object does not contain a direct link to the owner directory containing it, since that value can be derived from the Account.- Returns:
- A
Stringcontaining the hint.
-
previousTransactionId
Hash256 previousTransactionId()The identifying hash of the transaction that most recently modified this object.- Returns:
- A
Hash256containing the previous transaction hash.
-
previousTransactionLedgerSequence
com.google.common.primitives.UnsignedInteger previousTransactionLedgerSequence()The index of the ledger that contains the transaction that most recently modified this object.- Returns:
- An
UnsignedIntegerrepresenting the previous transaction ledger sequence.
-
expiration
Optional<com.google.common.primitives.UnsignedInteger> expiration()Indicates the time after which this offer is considered expired, in seconds since the Ripple Epoch.- Returns:
- An
Optionalof typeUnsignedIntegerrepresenting the expiration of this offer.
-
domainId
The permissioned domain that the offer is part of.- Returns:
- A
Hash256representing DomainID.
-
additionalBooks
List<BookWrapper> additionalBooks()An additional list of order book directories that this offer belongs to. Currently, this field only applicable to hybrid offers.- Returns:
- A list of
BookWrapperrepresenting order book directories.
-
index
Hash256 index()The unique ID of theOfferObject.- Returns:
- A
Hash256containing the ID.
-