Domain attributes
Domain (and subdomain) attributes are stored on-chain as key-value pairs. Keys and values are utf-8 encoded bytestrings.
Restrictions#
- length: 1 - 64 characters for both keys and values (this is the upper limit for bytestring length in datums on Cardano)
- at most 20 attributes per domain (or subdomain)
- values can only contain the following characters:
- letters:
a - zandA - Z - digits:
0 - 9 - other characters:
!"#$%&'()*+,\-./:;<=>?@[\]^_{|}~and space
- letters:
Attribute keys#
There are two types of attribute keys: predefined and custom keys.
Predefined keys are used to store cryptocurrency addresses, socials, contact information and define web browser redirects. The following are all currently supported predefined keys:
- Cryptocurrency addresses -
addraddr.ada- Cardanoaddr.btc- Bitcoinaddr.eth- Ethereum
- Contact information -
concon.mail- email addresscon.mobi- mobile number
- Socials -
socsoc.dsc.inv- Discord invite linksoc.dsc.usr- Discord usernamesoc.ig- Instagramsoc.tel.shr- Telegram share linksoc.tel.usr- Telegram usernamesoc.tktk- Tiktoksoc.twtr- Twittersoc.yt- Youtube
- Web browser -
webweb.ipfs- valid IPFS hashweb.url- valid URL which can be resolved in a web browser (some examples are listed below)https://example.comhttp://www.example.com/home?q=abcmailto:example@mydomain.com
Custom keys must always start with cus. and can only contain the following characters: a - z, 0 - 9 and - (for example cus.my-custom-attribute1).