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 - z
andA - Z
- digits:
0 - 9
- other characters:
!"#$%&'()*+,\-./:;<=>?@[\]^_{|}~
and space
- letters:
#
Attribute keysThere 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 -
addr
addr.ada
- Cardanoaddr.btc
- Bitcoinaddr.eth
- Ethereum
- Contact information -
con
con.mail
- email addresscon.mobi
- mobile number
- Socials -
soc
soc.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 -
web
web.ipfs
- valid IPFS hashweb.url
- valid URL which can be resolved in a web browser (some examples are listed below)https://example.com
http://www.example.com/home?q=abc
mailto: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
).