Ram pfp
Ram
@hiddentao
1/ Did some investigating into storing NFT metadata fully on-chain, especially with respect to large images. First, The data URI length can be several KB (64 KB+) long: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs#length_limitations
1 reply
0 recast
0 reaction

Ram pfp
Ram
@hiddentao
2/ Both SVG and PNG data URIs seem to work. Presumably other file formats would also work. It's expensive to write KB of data to a storage slot (duh!), so an L2/L3 with periods of low gas feed - e.g 1 Gwei - is essential to minimizing overall cost to caller.
1 reply
0 recast
0 reaction