NFTs
The Polkaswap interface has been powered up and non-fungible tokens are available in Polkaswap. At the moment, you can only mint and share NFT. Swapping, liquidity and bridging functions are not available yet.
The other item needed is a file to mint. You can use an IPFS link or you can upload the file locally.
Via Polkaswap
Minting Tokens
- Access Polkaswap and navigate to account.
- Click on the circular icon on the top right corner of the account view:
- Select the NFT tab and get ready to mint your first NFT on the SORA network!
In the create NFT interface you will be able to mint your non-fungible NFTs.
Here is an overview of the available fields:
- To add the file, you can use an IPFS link, or alternatively, you can upload a file from your local storage.
- You will then need to assign a Token symbol with maximum 7 chars. Keep this in mind as you will need the token symbol later when you import the NFT to your wallet.
- Token name is similar to the token symbol, but has a 33 char limit instead.
- Token Description answers question like: what's your token about? what makes your token special? You can either let your imagination run free here, or add a generic description.
- In the Token supply specify how many tokens you want to mint.
- Use toggle switches to choose if you want to mint more tokens based on this one (Extensible supply), or if you want your NFT to have the ability to divide into fractional parts (Divisible). More information on this option is coming soon.
Now that you know what the NFT interface looks like and what information you need to provide, let’s mint an NFT!
Walkthrough
For this example, we will be minting the Temple of the God of the Wind, from the Tulum Mayan ruins. We have an IPFS link for the image too.
- Paste the URL in the IPFS link field and let the image load.
- Once the image is visible, add the token symbol, name, description, and how many copies you would like to mint.
Choose if you want to mint more tokens based on this. If you want the token to be divisible, make sure you have enough funds for the transaction fee and click Create NFT.
INFO
If you want to pool an NFT, it has to be Divisible.
On a confirmation screen, double-check that all the info input was correct, then click confirm and sign the transaction with your wallet. You will be required to sign using your Polkadot.js browser add-on.
- Once the NFT has been minted, navigate to the Activity tab within your account view and make sure the asset appears as registered.
You have successfully minted an NFT!
But you still can’t see it within your assets... This is where the token symbol comes in.
Adding Tokens to Your Wallet
- Navigate back to the Assets tab within your account view, then scroll to the bottom of the list and click the Add Asset button.
- Search for the asset from the list using the token symbol you assigned, then select the token.
As soon as you select it, you will be served with a disclaimer. Always make sure that the tokens you add to your account are legitimate.
Once you toggle the accept switch, click Add Asset.
Your NFT will now appear within your list of assets!
Viewing Tokens
What can you do with NFTs for now? Here is a quick rundown.
From your account view, click on the arrow to see the visual content of your NFT.
This will open a preview of your NFT. From here you can do things like send the token to another address, copy the token address, or remove the asset from your wallet:
Sending Tokens
You can send your freshly minted token to other addresses! In order to do that, you need your friend’s address and some XOR for the transfer fees.
Click on the send button from the NFT view:
A confirmation will appear requesting an address, and the amount of tokens to send. This will also display the network fee.
Make sure everything is correct and click send.
- Confirm that the recipient address is correct one more time, confirm and sign the transaction.
And that is it! You can double-check your token supply and you will see the NFT has been sent.
Pooling Tokens
Although there is no NFT marketplace implementation on Polkaswap (yet), it is possible to pool NFT that you own, along with XOR. In order for a NFT to be pooled, it has to be divisible, so you can sell or buy only a fraction of it. Pooling NFT works like any other liquidity pool on Polkaswap, and it also provides the same advantages. The steps to pool your NFT are as follows:
- From the NFT preview within your wallet, click on the 💧 icon.
- Select the amount of XOR to pair with your NFT. You can also add more than one NFT to the pool if you want to add more XOR.
Double-check the details and, if everything is correct, click confirm.
Your Polkadot.js extension will require you to sign a transaction as well. Once it is confirmed, you will be able to see your NFT pool within the Pool section in Polkaswap.
Remember that you can pool more than one NFT at a time (as many of the same token as you may have in your wallet).
You can also pool your NFT directly from the Pool section in Polkaswap.
- You can either add liquidity or create a pair. When you create a pair with an NFT, the flow will be the same as pooling an NFT directly. There is a step in common with adding liquidity to an existing pool, which is the initial token selection.
- Click on Custom to see your NFT and select the one you have decided to pool (or add liquidity to an existing pool).
Like before, select the token and the amount of liquidity (in this case 1 NFT and its equivalent in XOR), then click on Supply. In this example, we add more liquidity to the WINDTUL and XOR pool:
You will receive a confirmation from your wallet and the token will be part of a liquidity pool.
Alternatively, you can also add or remove liquidity from an NFT pair directly from the drop-down menu in the Polkaswap pool view:
Swapping Tokens
Finally, you can also swap an NFT for other tokens from the preview screen;
Click the swap button:
You will be presented with the familiar Polkaswap swapping interface that will allow you to trade your NFT for other tokens.
INFO
Be aware that swapping your NFT like this will come at a significant price impact.
Choose the token to swap your NFT to:
- Similar to the other functions, review the transaction summary and, if you're happy with the outcome, click swap and sign the transaction in Polkadot.js extension.
WARNING
You can also buy NFT using the swap function, however, you need to add the desired NFT to your wallet as a custom asset. Swapping XOR or other tokens for NFT has a significant price impact. Be sure to understand these risks before trading NFT in Polkaswap.