Custom Data
struct Domain {
string name;
uint256 tokenId;
address holder;
string data; // <-- CUSTOM DATA
}#Custom data standard
{
"imgAddress": "url-or-nft-address", // either an HTTP url (e.g. "http://hey.com/me.jpg") or an NFT address (0xa12B3...)
"imgTokenId": 0, // in case of NFT address, tokenID is mandatory, otherwise it is not
"imgChainId": 137, // the chain where NFT exists on
"url": "https://smol.domains",
"emails": ["[email protected]"], // possible to add multiple emails
"twitter": ["smoldomains"], // possible to add multiple twitter handles
"subdomains": {
"sandbox": { // sandbox.techie.smol - in case I want to have a username with different data (like PFP) in the Sandbox metaverse
"address": "0x123...",
"pfpTokenAddress": "0x098...",
"pfpTokenId": 22 // PFP ownership needs to be verified on front-end
}
},
"chainAddresses": { // if user wants to define different addresses on different chains (only one address per chain)
"10": "0xa5b6...",
"100": "0xc8d9...",
"42161": "0xe2f3...",
}
}Last updated