We successfully transferred some of our tokens to another account in the previous article. We will try to build our exchange on Kadena based on the Kaddex swap DApp for learning purposes. Since Kaddex is using Devnet instead of Testnet, we are required to create a new wallet on X-wallet and Chainweaver again.
Step 1: Go to Kadena Coin Transfer. You may find its link on Kadena discord. Then, click the”Generate KeyPair (saves to file)” button.
Step 2: You will download a file containing public and secret keys . Open it with a text editor.
Step 3: Go to Kaddex Devnet Helper. You may also find its link on Kadena discord. Select KDA as the Token, and enter your public key under the account name and public key field. Click the “Dispense” button after that.
Step 4: Wait for a few minutes. Your account on Devnet has been created.
Step 5: Move to the X-wallet extension, and choose Kaddex Devnet as the network. Enter the public key obtained in step 2 as your account name and the secret key as your private key. Currently, there is no way to export a 12-word seed phrase from X-wallet and import it into Chainweaver. The X-wallet will be the interface to communicate to our exchange later, implying we have to transfer our minted token from Chainweaver to X-wallet. We have another chance to practice what we have learned before. XD
Step 6: After adding your account on Kaddex Devnet, you will find 10 KDA on your account.
Step 7: Go back to Chainweaver, and hit the “Settings” button on the left menu. After that, click the “Network” button.
Step 8: Enter Devnet on the network field and click the “Add” button. Input devnet.kaddex.com as the node and click the “OK” button. You may confirm the Kaddex Devnet RPC Url from the Kaddex documentation website.
Step 9: Select “Keys” on the left menu. Add the public key you used on the Testnet before. Click “Add k: Account” afterward.
Step 10: Go back to Kaddex Devnet Helper, and add some KDA to your public key (with “k:“) and main account.
Step 11: Add your main account to the watch account on the accounts page. You will find 10 KDA on both of your accounts.
Step 12: Deploy a contract to create your token again. Recheck my fourth article again if you forget how to deploy your token. After that, transfer your token to the X-wallet Devnet account. Again, look at my previous article if you forget how to transfer tokens to another account.
Step 13: Go to X-wallet again, and press the “Add more tokens” button. Enter your token name with a “free.” prefix. In my case, it is called “free.eth”. Next, enter your token name as the Token Symbol. Click the “Add Custom Token” after that.
Step 14: If no error occurs, your token of X-wallet Devnet account balance will be displayed correctly.
We have practiced what we have done on the Kadena Testnet. In the following article, we will create our token pair (liquidity pool) on Kaddex Devnet. We have learned a lot and are closer to our goal.
If you think this article is helpful, leave a comment below. 🙂
You may also sponsor this website by sending some KDA to this address: k:e95a044488f4b6ced42ab9be0268ffe530e47401b24b8c29bfeba5942e5da275.