Formatting json data stored in text records? #15
Closed
0xc0de4c0ffee
started this conversation in
General
Replies: 2 comments
-
https://discuss.ens.domains/t/nft-showcase-ens-record-and-record-standardization/16894/33 |
Beta Was this translation helpful? Give feedback.
0 replies
-
https://discuss.ens.domains/t/draft-ensip-off-chain-name-meta-resolution/17019/6 If json/any content is dumped in text records it's good idea to prefix as data URI. except for plaintext.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is related to #1 headers records type and ENS forum discussion about "showcase" text records.
We're dumping big json string on text records off-chain, so IF we should go one step ahead and prefix it with proper
data:[<mediatype>][;base64],<data>
? RFC2397wrapping that json data inside .json {data: "data:text/json..."}
This is more similar to avatar records resolved from ERC721/1155 URIs are compatible with
data:...
formatted NFT records.So we should think about different app/service specific data/types dumped on text records.
& back to IPLD topic on ENS forum it'd be nice to have direct data:uri support on contenthash so we could run html/svg generators on-chain or other generators types to read on-chain data and output
data:application/json,{..}
linked with sub-domain mappers example,<0xaddr>.balanceof.dai.xtoken.eth
.One more record that we've to speed up is "MARKET" record for owners to setup a signed buy/sell orders..
e.g, pay x $ETH to market contract with this signature to buy this domain.eth.
it's similar to selling on nft markets but the signed data is stored in domain's text record for open markets to read/display.
Beta Was this translation helpful? Give feedback.
All reactions