Skip to content

URIToken

[Source]

(Added by the [URI Token amendment][].)

A URIToken object describes a URI token, which can be used to represent a unique resource identifier in the ledger.

{
"Owner": "rUn84CUYbNjRoTQ6mSW7BVJPSVJNLb1QLo",
"OwnerNode": "0000000000000000",
"Issuer": "rfkE1aSy9G8Upk4JssnwBxhEv5p4mn2KTy",
"URI": "DEADBEEF",
"Digest": "46060241FABCF692D4D934BA2A6C4427CD4279083E38C77CBE642243E43BE291",
"Amount": "100000000",
"Destination": "rUn84CUYbNjRoTQ6mSW7BVJPSVJNLb1QLo",
"PreviousTxnID": "5463C6E08862A1FAE5EDAC12D70ADB16546A1F674930521295BC082494B62924",
"PreviousTxnLgrSeq": 6,
"LedgerEntryType": "URIToken",
"index": "49647F0D748DC3FE26BDACBC57F251AADEFFF391403EC9BF87C97F67E9977FB0"
}

A URIToken object has the following fields:

FieldJSON Type[Internal Type][]Required?Description
OwnerStringAccountYesThe owner of the URI Token.
OwnerNodeStringUInt64YesA hint indicating which page of the owner’s directory links to this object, in case the directory consists of multiple pages.
IssuerStringAccountYesThe issuer of the URI Token.
URIStringVLYesThe URI represented by this token.
DigestStringHash256NoArbitrary 256-bit hash provided by the owner as a specific identifier for this URI Token.
AmountString or ObjectAmountNoThe amount of the URI Token.
DestinationStringAccountNoThe intended recipient of the URI Token.
PreviousTxnIDStringHash256YesThe identifying hash of the transaction that most recently modified this object.
PreviousTxnLgrSeqNumberUInt32YesThe index of the ledger that contains the transaction that most recently modified this object.
LedgerEntryTypeStringUInt16YesThe value 0x0073, mapped to the string URIToken, indicates that this object is a URI Token object.

URIToken objects can have the following flag values:

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

The ID of a URIToken object is the [SHA-512Half][] of the following values, concatenated in order:

  • The URI Token space key (0x0055)
  • The AccountID of the issuer of the URI Token
  • The URI represented by the URI Token