Package org.xrpl.xrpl4j.model.ledger
Interface NfTokenOfferObject
- All Superinterfaces:
LedgerObject
- All Known Implementing Classes:
ImmutableNfTokenOfferObject
An Offer returned in an
NfTokenOfferObject list.
Note that this object is NOT the same as the Offer ledger object.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.xrpl.xrpl4j.model.ledger.LedgerObject
LedgerObject.LedgerEntryType -
Method Summary
Modifier and TypeMethodDescriptionamount()The amount expected or offered for the token.builder()Construct a builder for this class.The intended recipient of theNfTokenObject.Optional<com.google.common.primitives.UnsignedInteger> A time after which this offer is considered unfunded, as the number of seconds since the Ripple Epoch.flags()A set of booleanNfTokenOfferFlagscontaining options enabled for this object.index()The unique ID of thisNfTokenOfferObject.default LedgerObject.LedgerEntryTypeThe type of ledger object.The TokenId of the NfToken for which the offer has been created.A hint indicating which page of the token buy or sell offer directory links to this object.owner()Addressof the source account that created and owns the offer.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.
-
Method Details
-
builder
Construct a builder for this class.- Returns:
- An
ImmutableNfTokenOfferObject.Builder.
-
ledgerEntryType
The type of ledger object. In this case, this is always "NfTokenOffer".- Returns:
- Always
LedgerObject.LedgerEntryType.NFTOKEN_OFFER.
-
amount
CurrencyAmount amount()The amount expected or offered for the token.- Returns:
- The
CurrencyAmount.
-
owner
Address owner()Addressof the source account that created and owns the offer.- Returns:
- The
Addressof the NfTokenOffer owner.
-
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.
-
nfTokenId
NfTokenId nfTokenId()The TokenId of the NfToken for which the offer has been created.- Returns:
NfTokenIdof the NfToken.
-
expiration
Optional<com.google.common.primitives.UnsignedInteger> expiration()A time after which this offer is considered unfunded, as the number of seconds since the Ripple Epoch.- Returns:
- The offer's expiration.
-
destination
The intended recipient of theNfTokenObject. This address will receive the NFToken when the offer is accepted.- Returns:
- The
Addressof the destination.
-
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.
-
offerNode
A hint indicating which page of the token buy or sell offer directory links to this object.- Returns:
- A
Stringcontaining the hint.
-
flags
NfTokenOfferFlags flags()A set of booleanNfTokenOfferFlagscontaining options enabled for this object.- Returns:
- The
NfTokenOfferFlagsfor this object.
-
index
Hash256 index()The unique ID of thisNfTokenOfferObject.- Returns:
- A
Hash256containing the ID.
-