Hathor Wallet 0.21.1 — mint your NFT
Hello, Hathor community,
We’re happy to announce a new version of our desktop wallet with NFT functionality (v0.21.1). The NFT market has attracted much attention this year, so we decided to prioritize it in our roadmap. The demand is growing, and we are happy to see many NFT use cases showcased on our network.
As with everything we do in Hathor Network, we wanted to make the whole process simple and easy to use, both for creators and end-users. I believe the team did an outstanding job!
How to create your NFT
Upload your data
The first step is uploading your NFT data to an immutable storage solution. In most NFTs, this is an image or a video. There are several options for immutable storage solutions. The most common one is IPFS, an immutable and distributed file system.
NFTs usually also have a metadata file. This has extra information about the token, such as name, description, and extra attributes, as well as a link to the NFT file itself. We have already released an NFT Standard RFC detailing the
metadata.json file. We recommend that projects follow it, so it’s easier for future platforms created in the network to handle NFTs and this extra data.
If you upload your NFT art to IPFS, you’ll get a link such as
ipfs://ipfs/QmYKrVVCdmf1tkThbmny1M8JHVGrLdWNnXhCnrUUrvzsZa/ .This is the link to be added to the metadata. And
metadata.json should look like this:
And we must again upload this file (
metadata.json) to IPFS, which will get us another link such as
ipfs://ipfs/QmTrt25ZdYZbDMUzxRLwBFVMrrDL2EgGWYVgeyZaEeCYAc/. This is the link that will be used in the desktop wallet when minting the token.
TIP: before uploading your metadata.json, it's worth checking if it's a valid json file. It's easy to have an extra comma or bracket. You can use a service such https://jsonformatter.curiousconcept.com/ for that.
When working with NFTs, it’s important to use immutable storage to make sure the underlying asset the NFT represents cannot be changed.
Imagine we used as art an image hosted on a regular website, let’s say
https://obiyankenobi.com/nft.jpg. When the NFT is first minted and sold, this image might be the correct one, with my artistic picture as above. However, I can later replace this image with whatever other image I want. So the buyer of the NFT will now be holding a token that’s not what it was intended for.
With immutable storage such as IPFS, this cannot happen. Each file has a unique path, and if the file is somehow changed, a new link is generated.
How to upload files to IPFS
As I mentioned, IPFS is the most common way to upload your files to an immutable storage system. You can run a local IPFS node or use a service such as https://pinata.cloud/ to make it easier.
Create NFT on the Hathor desktop wallet
Now that we have the link, we can mint the NFT. This is done directly on the Hathor desktop wallet. On version 0.21.1, we added a new screen for NFT creation. Just go to Custom tokens -> Create an NFT.
You’ll need to fill out some information:
1. NFT data: in our example, this is the link to the
metadata.json file, so we add here
ipfs://ipfs/QmTrt25ZdYZbDMUzxRLwBFVMrrDL2EgGWYVgeyZaEeCYAc/. It’s important to use the
ipfs://... link, not
https://ipfs.io/.... You can read more about the reason here.
2. Name and Symbol are similar to what we have on regular tokens.
3. Amount: this is the number of token units created. Since this is an NFT, only integers are valid (e.g., 1, 10, 100), unlike regular tokens with two decimal places.
4. Select address automatically: this is the address selection that will receive the created NFT units. If you leave it checked, the wallet will get the first available address to use. Otherwise, you can unselect it and manually write the address you want to receive the NFTs.
5. Mint and melt authorities: similar to regular tokens, it controls if you can create or destroy units of this token.
The wallet will display the deposit and fee required for this operation. Just like in our custom token creation, the NFT requires a deposit in HTR. The amount to deposit will be 0.01% of the total units.
The fee is a fixed amount of 0.01 HTR and does not change depending on the NFT amount created. This fee cannot be returned even if the NFT units are destroyed later.
In this example, I’m minting 10 units of this NFT, so I’ll pay 0.01 for the deposit and 0.01 for the fee, totaling 0.02 HTR.
All you need to do now is click Create, and boom: your NFT is created!
Check out the video below with the whole process:
Show your NFT asset in our explorer.
Your NFT asset won’t be automatically displayed on the Hathor explorer. The reason for that is because we can’t trust the image/video/audio that will be uploaded and we need to check before showing it on our explorer.
Besides that, there is a requirement that the asset must be in an immutable link in order to be shown in our explorer.
If you comply with all the requirements and would like to have your asset in our explorer, just get in touch with anyone from the team and ask for that.
We also added an NFTs section in our wallet. Any NFT that you hold and have added to your wallet will show up in this section. Please bear in mind that only NFTs that have been identified as so and have the art showing up in our explorer, as explained above, will be displayed here.
We will soon release a new version of our mobile app where tokens identified as NFTs will also be displayed as integers. For now, they will show up as decimals (e.g., 0.01 means 1 token). We will not, however, display the art on the app.
I hope you enjoy this update, and I’m looking forward to seeing all the cool NFT projects out there. Head to our website to download this new version of the wallet: https://hathor.network/get-started/
Keep building on Hathor!
About Hathor Network
Hathor Network is a PoW-based novel distributed ledger architecture using both DAG and blockchain data structures intertwined. Our network’s unique design solves significant bottlenecks built with scalability, usability, and decentralization in mind, preventing the broad adoption of the technology.
Hathor Network has been on Mainnet since January 2020, experiencing exponential growth in the number of custom tokens, active wallets, and mining hash rate.