Custom NFT TokenMetadata for research project #392
-
Hi, I am trying to create a custom NFT with the following TokenMetadata // Following parameters belong to the wireguard config file section [Interface] This is just a draft design, probably some fields can be left out of the final implementation. I would like to store this data on-chain, in the NFT itself as it is not too heavy. The idea is to modify boringtun (a userspace implementation of wireguard in written in Rust), and create a proof of concept whereas you can purchase a VPN subscription with NEAR and upon receiving the NFT, the connection is automatically configured, using the blockchain public ed25519 keys. This has many advantages, too long to list here. Is it possible to add any data to TokenMetadata at all, or does it require modifying NEP-177? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I would a new field to the current metadata spec for a struct with the new data. Check out https://github.com/near/near-sdk-rs for the standarda code to add to. |
Beta Was this translation helpful? Give feedback.
I would a new field to the current metadata spec for a struct with the new data. Check out https://github.com/near/near-sdk-rs for the standarda code to add to.