Interface NfTokenAcceptOffer
- All Superinterfaces:
Transaction
- All Known Implementing Classes:
ImmutableNfTokenAcceptOffer
NfTokenAcceptOffer transaction creates an NfT object and adds it to the
relevant NfTPage object of the minter. If the transaction is
successful, the newly minted token will be owned by the minter account
specified by the transaction.-
Field Summary
Fields inherited from interface org.xrpl.xrpl4j.model.transactions.Transaction
typeMap -
Method Summary
Modifier and TypeMethodDescriptionThis field is only valid in brokered mode and specifies the amount that the broker will keep as part of their fee for bringing the two offers together; the remaining amount will be sent to the seller of the NfT being bought.default voidValidate that eitherbuyOffer()orsellOffer()is present for direct mode and both are present for brokered mode.builder()Construct a builder for this class.buyOffer()Identifies the NfTOffer that offers to buy the NfT.default TransactionFlagsflags()Set ofTransactionFlagss for thisNfTokenAcceptOffer, which only allows thetfFullyCanonicalSigflag, which is deprecated.Identifies the NfTOffer that offers to sell the NfT.Methods inherited from interface org.xrpl.xrpl4j.model.transactions.Transaction
account, accountTransactionId, delegate, fee, lastLedgerSequence, memos, networkId, sequence, signers, signingPublicKey, sourceTag, ticketSequence, transactionFlags, transactionSignature, transactionType, unknownFields, validateDelegateNotSameAsAccount
-
Method Details
-
builder
Construct a builder for this class.- Returns:
- An
ImmutableNfTokenAcceptOffer.Builder.
-
sellOffer
Identifies the NfTOffer that offers to sell the NfT.In direct mode this field is optional, but either SellOffer or BuyOffer must be specified. In brokered mode, both SellOffer and BuyOffer MUST be specified.
-
buyOffer
Identifies the NfTOffer that offers to buy the NfT.In direct mode this field is optional, but either SellOffer or BuyOffer must be specified. In brokered mode, both SellOffer and BuyOffer MUST be specified.
-
brokerFee
Optional<CurrencyAmount> brokerFee()This field is only valid in brokered mode and specifies the amount that the broker will keep as part of their fee for bringing the two offers together; the remaining amount will be sent to the seller of the NfT being bought. If specified, the fee must be such that, prior to accounting for the transfer fee charged by the issuer, the amount that the seller would receive is at least as much as the amount indicated in the sell offer. This functionality is intended to allow the owner of an NfT to offer their token for sale to a third party broker, who may then attempt to sell the NfT on for a larger amount, without the broker having to own the NfT or custody funds. If both offers are for the same asset, it is possible that the order in which funds are transferred might cause a transaction that would succeed to fail due to an apparent lack of funds. To ensure deterministic transaction execution and maximimize the chances of successful execution, this proposal requires that the account attempting to buy the NfT is debited first and that funds due to the broker are credited before crediting the seller. Note: in brokered mode, The offers referenced by BuyOffer and SellOffer must both specify the same TokenID; that is, both must be for the same NfT.
- Returns:
- An
Optionalof typeCurrencyAmount.
-
brokerFeeNotPresentInDirectModeAndAtleastOneOfferPresent
@Check default void brokerFeeNotPresentInDirectModeAndAtleastOneOfferPresent()Validate that eitherbuyOffer()orsellOffer()is present for direct mode and both are present for brokered mode. -
flags
Set ofTransactionFlagss for thisNfTokenAcceptOffer, which only allows thetfFullyCanonicalSigflag, which is deprecated.The value of the flags cannot be set manually, but exists for JSON serialization/deserialization only and for proper signature computation in rippled.
- Returns:
- Always
TransactionFlags.EMPTY.
-