Primitives

address

Schema
Example
Schema
"address": {
"type": "string",
"pattern": "^:adr:.+",
"description": "A 33 byte public key address encoded in Base58."
}
Example
{
"address": ":adr:JHuDLpGefPssAY3v1pTXTQWHGv1tkTCEdq7RQYPnLuin1cfoath"
}

aid

Schema
Example
Schema
"aid": {
"pattern": "^:aid:.+",
"description": "A unique 256-bit Atom ID encoded in hex.",
"type": "string"
}
Example
{
"aid": ":aid:b5778220e5fa6063208498148555fbc19ac44ef1742806cb56abab3870585f04"
}

bytes

Schema
Example
Schema
"bytes": {
"type": "string",
"pattern": "^:byt:.+",
"description": "Arbitrary bytes encoded in Base64."
}
Example
{
"r": ":byt:YmALbQL7lUrrfwD2dqafO0OgxpUZ372sE+aBbef0fUI=",
}

hash

Schema
Example
Schema
"hash": {
"type": "string",
"pattern": "^:hsh:.+",
"description": "A 256 bit hash encoded in Base64."
}
Example
{
"commitment": ":hsh:c163067c287f46f7119c644a35c8e0e3ae0c8d1c112f2a02e531e8ea0b65596b",
}

radixResourceIdentifier

Schema
Example
Schema
"radixResourceIdentifier": {
"type": "string",
"pattern": "^:rri:.+",
"description": "A URI pointing to a single existing UP particle"
}
Example
{
"token_reference": ":rri:/JHuDLpGefPssAY3v1pTXTQWHGv1tkTCEdq7RQYPnLuin1cfoath/tokenclasses/XRD",
}

spin

Schema
Example
Schema
"spin": {
"type": "integer",
"maximum": 1,
"minimum": -1,
"description": "The spin of a particle. -1 for Down state. 1 for Up state."
}
Example
{
"spin": 1
}

string

Schema
Example
Schema
"string": {
"type": "string",
"pattern": "^:str:.+",
"description": "A string."
}
Example
{
"name": ":str:Proof of Work",
}

tokenActionPermission

Schema
Example
Schema
"tokenActionPermission": {
"type": "string",
"enum": [
":str:token_creation_only",
":str:token_owner_only",
":str:none",
":str:all"
]
}
Example
{
"permissions": {
"mint": ":str:token_owner_only",
"burn": ":str:token_owner_only"
}
}

u20

Schema
Example
Schema
"u20": {
"type": "string",
"pattern": "^:u20:.+",
"description": "A 256-bit/32-byte unsigned integer in decimal representation."
}
Example
{
"amount": ":u20:1000000000000000000000000000",
}

uid

Schema
Example
Schema
"uid": {
"type": "string",
"pattern": "^:uid:.+",
"description": "A unique 128-bit ID encoded in Base64."
}
Example
{
"hid": ":uid:98a1a35d872dbec1956b7c4af2cc9ebb",
}