简体   繁体   English

如何使用 Metaplex 标准在 Solana 上存储 NFT 的多语言数据?

[英]How to store multilingual data for an NFT on Solana with the Metaplex standard?

To have full language support for any website the data must be stored in both languages instead of automatically translated.要为任何网站提供完整的语言支持,数据必须以两种语言存储,而不是自动翻译。 Decentralized storage systems are at their infancy and Solana is not optimized for READ operations.去中心化存储系统处于起步阶段,Solana 并未针对 READ 操作进行优化。 It seems like providing multilingual data for the metadata of each NFT will inflate the amount of data about said NFT.似乎为每个 NFT 的元数据提供多语言数据会增加有关 NFT 的数据量。 You can't store two versions of the same NFT.你不能存储同一个 NFT 的两个版本。

Is there a better way to start with supporting two languages for an NFT collection based on the metaplex metadata standard?有没有更好的方法来开始支持基于 metaplex 元数据标准的 NFT 集合的两种语言?

The easiest and the fastest way to store multilingual data for an NFT on Solana would be to store it off-chain using the external_url field, on the on-chain metadata.在 Solana 上为 NFT 存储多语言数据的最简单和最快的方法是使用external_url字段在链上元数据上将其存储在链下。

According to the (non-fungible) Token Metadata Standard by Metaplex: https://docs.metaplex.com/programs/token-metadata/token-standard#the-non-fungible-standard , this URI points to an external URL defining the asset.根据 Metaplex 的(不可替代的)令牌元数据标准: https ://docs.metaplex.com/programs/token-metadata/token-standard#the-non-fungible-standard ,此 URI 指向定义的外部 URL资产。

This off-chain JSON could then store any number of language conversions of the metadata of your NFT and can easily (and quickly) be queried as the data remains off-chain.然后,这个链外 JSON 可以存储 NFT 元数据的任意数量的语言转换,并且可以在数据保持在链外时轻松(且快速)地进行查询。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM