URITokenBuy
The URITokenBuy transaction allows a user to buy a URIToken from the issuer. This transaction is used to transfer ownership of a URIToken from the issuer to the buyer.
[Source]
(Added by the [URIToken amendment][].)
Example
Account
String
AccountID
The address of the buyer's account.
URITokenID
String
Hash256
The unique identifier of the URIToken to be bought.
Special Transaction Cost
The URITokenBuy transaction has a standard transaction cost, which is the minimum fee required for any transaction in Xahau.
Error Cases
Besides errors that can occur for all transactions, URITokenBuy transactions can result in the following transaction result codes:
tecCANT_ACCEPT_OWN_NFTOKEN_OFFER
Occurs if the owner of the token is the one claiming the offer.
tecDST_TAG_NEEDED
Occurs if the destination account requires a destination tag, but the transaction does not include one.
tecNO_PERMISSION
Occurs if the seller does not have the token listed for sale or the token Destination
is not the account buying the token.
temBAD_CURRENCY
Occurs when the buying currency does not match the offer currency.
tecINSUFFICIENT_PAYMENT
Occurs when the buy amount is less than the offer amount.
tecINSUFFICIENT_FUNDS
Occurs when the buyer doesn't have sufficient funds including the Fee
to purchase the token.
Last updated