Skip to content

URITokenMint

[Source]

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

{
"TransactionType": "URITokenMint",
"Account": "rWYkbWkCeg8dP6rXALnjgZSjjLyih5NXm",
"Flags": 1,
"URI": "697066733A2F2F4445414442454546",
"Digest": "697066733A2F2F4445414442454546697066733A2F2F44454144424545467878",
"Destination": "rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe",
"Amount": {
"issuer": "rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn",
"currency": "USD",
"value": "100",
},
}
FieldJSON Type[Internal Type][]Description
AccountStringAccountIDThe address of the account that will own the minted URIToken.
URIStringStringThe URI associated with the minted URIToken. (256 byte max)
DigestStringHash256(Optional) The digest of the URIToken.
DestinationStringAccountID(Optional) The address of the account that can buy the minted URIToken.
AmountCurrency AmountAmount(Optional) The amount of currency the account wants to receive in exchange for the URIToken.

Transactions of the URITokenMint type support additional values in the Flags field, as follows:

Flag NameHex ValueDecimal ValueDescription
tfBurnable0x000000011Allow the issuer (or an entity authorized by the issuer) to destroy the minted URIToken. (The URIToken’s owner can always do so.)

The URIToken Mint transaction has a standard transaction cost, which is the minimum transaction cost required for all transactions.

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

Error CodeDescription
tecDUPLICATEOccurs if a URIToken with the same URI from the same issuer already exists.
tecDIR_FULLOccurs if the owner’s directory is full and cannot accommodate the new URIToken.
temINVALID_FLAGOccurs when the user specified an incorrect Flag.
terNO_ACCOUNTOccurs if the sending account does not exist.