Skip to content

URITokenBuy

[Source]

(Added by the [URIToken amendment][].)

{
"TransactionType": "URITokenBuy",
"Account": "rWYkbWkCeg8dP6rXALnjgZSjjLyih5NXm",
"URITokenID": "C1AE6DDDEEC05CF2978C0BAD6FE27362498DGS691DC749DCDD3B95992978C0BA",
"Amount": {
"issuer": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
"currency": "USD",
"value": "100",
},
}
FieldJSON Type[Internal Type][]Description
AccountStringAccountIDThe address of the buyer’s account.
URITokenIDStringHash256The unique identifier of the URIToken to be bought.
AmountCurrency AmountAmountThe amount of currency to pay for the URIToken.

The URITokenBuy transaction has a standard transaction cost, which is the minimum fee required for any transaction in Xahau.

Besides errors that can occur for all transactions, URITokenBuy transactions can result in the following transaction result codes:

Error CodeDescription
tecCANT_ACCEPT_OWN_NFTOKEN_OFFEROccurs if the owner of the token is the one claiming the offer.
tecDST_TAG_NEEDEDOccurs if the destination account requires a destination tag, but the transaction does not include one.
tecNO_PERMISSIONOccurs if the seller does not have the token listed for sale or the token Destination is not the account buying the token.
temBAD_CURRENCYOccurs when the buying currency does not match the offer currency.
tecINSUFFICIENT_PAYMENTOccurs when the buy amount is less than the offer amount.
tecINSUFFICIENT_FUNDSOccurs when the buyer doesn’t have sufficient funds including the Fee to purchase the token.