URITokenCreateSellOffer

An URITokenCreateSellOffer transaction allows a user to create a sell offer for a URIToken on Xahau's decentralized exchange.

[Source]

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

Example

{
    "TransactionType": "URITokenCreateSellOffer",
    "Account": "rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe",
    "URITokenID": "C1AE6DDDEEC05CF2978C0BAD6FE27362498DGS691DC749DCDD3B95992978C0BA",
    "Destination": "rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe",
    "Amount": {
      "issuer": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
      "currency": "USD",
      "value": "100",
    },
}

Fields

FieldJSON Type[Internal Type][]Description

Account

String

AccountID

The address of the account creating the sell offer.

URITokenID

String

Hash256

The ID of the URIToken being sold.

Destination

String

AccountID

(Optional) The address of the account to receive the sell offer.

Amount

Amount

The amount of currency the account wants to receive in exchange for the URIToken.

Error Cases

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

Error CodeDescription

tecNO_TARGET

Occurs if the target account does not exist.

tecNO_PERMISSION

Occurs if the account does not have permission to create a sell offer.

tecINSUF_RESERVE_LINE

Occurs if the account does not have a sufficient reserve to create a sell offer.

tecINSUF_RESERVE_OFFER

Occurs if the account does not have a sufficient reserve to create a sell offer.

tecUNFUNDED_OFFER

Occurs if the account does not have a sufficient balance to create a sell offer.

tecOFFER_INVALID

Occurs if the sell offer is invalid.

Last updated