Here is a slightly more sophisticated demo.
This contract offers to mint a classical ERC-721 token, but this time all the metadata are 100% on chain!
There is no external dependency to retrieve the image, as it's SVG code generated on the fly.
Another feature, is to name and rename your token.
For this you have to pay a fee in an ERC-20 token.
The fee is arbitrary, it may very well be free, but we choose to add a fee to demonstrate the interaction between 2 contracts.
Icing on the cake, this name data is also 100% on chain and it's display in the art.
This is made possible because all the metadata are on chain including the image.
Note : this demo is focused on the technical part, not the artistic one
Token name :
Token symbol :
Max supply :
Current supply :
Max token per wallet :
Contract owner :
The SWAG token, is an ERC-20 token that is used as a currency to name or renamed a Name-Me Token.
You can get SWAG tokens for free on this page : ERC-20 Swag
You own NFT from this collection
On page load :
If your wallet is connected :
If your own Name-me token