To retrieve out-of-string metadata, the system will query the domain name and return a URI where the metadata can be found.
const obj = await client.getNFTokenInfo(NFTokenID);
const uri = xrpl.convertHexToString(obj.data.URI);
XRP Domains supports structured metadata in the Opensea format.
{
"id":"xrpdomains.xrp",
"name":"xrpdomains.xrp",
"symbol":"XRPID",
"description":"XRP Web3 Identity - Building Identity on blockchain with .xrp domains - buy once use forever",
"image":"",
"external_url":"https://xrpdomains.xyz/",
"createtime":"2022-12-12T20:43:29.9598674+01:00",
"background_color":"",
"attributes":[
{"trait_type":"Background","value":""},
{"trait_type":"Background Angle","value":200},
{"trait_type":"Chain Name","value":"XRPL"},
{"trait_type":"Top level domain","value":".xrp"},
{"trait_type":"Length","value":9},
{"trait_type":"Domain","value":"xrpdomain"},
{"trait_type":"Sub Domain","value":""},
{"trait_type":"Emoji","value":false}
]
}