cosmos / cosmos-sdk

:chains: A Framework for Building High Value Public Blockchains :sparkles:
https://cosmos.network/
Apache License 2.0
6.17k stars 3.57k forks source link

[Documentation]: How to use the NFT module, with example code for minting and sending an NFT? #17586

Closed Tectract closed 2 months ago

Tectract commented 1 year ago

Summary

Is the NFT module currently working?

Can someone help me understand how to:

1) add the nft module to my ignite chain repo. What do I need to add in app.go before I do chain serve?

2) "mint" an NFT using the current module, and how to define and assign data into the fields, including the data field?

3) example of sending the NFT from the minter address to a receiver address, using RPC commands and maybe custom module code also?

I would really love to use NFTs on our Cosmos SDK chain! We're also looking at this implementation of NFTs on a Cosmos chain, from the Iris Network blockchain, which, interestingly, does include a mintNFT function. Maybe some functionality could be pulled into the Cosmos SDK nft module from the Irisnet NFT module?

tac0turtle commented 2 months ago

sorry for not responding sooner, ill close this issue due to its age. If you still have the issue please open a new issue and we will respond faster

Tectract commented 2 months ago

I'd like to make a request for the NFT module to be updated to be more complete and support at least the ability to mint NFTs, or as much of the ERC 721 protocol as possible, and also for some implementation of an ERC20 token to be pulled in as a module also, but I'm not sure the exact right repo or Cosmos-related group to make this request to. It sure would be nice to have these functionalities in ignite-based chains by default, without having to support a full virtual machine and not have to be "downstream" of a virtual machine repo but still be able to mint tokens on our Cosmos chains. This would be immensely useful for issuing both security tokens and utility tokens for use in our metaverse / gaming platforms.