Wanchain: polkadot integration.

Wanchain Guide: Cross-chain Polkadot transfers (Testnet)

By ZooKeeper | Wanchain | 14 Jul 2021


1. Overview

This guide uses Polkadot’s Westend testnet which uses a native token called WND. WND can be transferred cross-chain Westend to Wanchain’s testnet. The mapped token is called wanWND.

2. Supported WanBridges

At present, there are multiple WanBridges that support cross-chain transfers of WND including Polkadot (Westend), Wanchain (testnet) and Ethereum (Rinkeby).

3. Preparation

a) Install the Polkadot Wallet Chrome extension: polkadot{.js} extension

URL: https://polkadot.js.org/extension/

After installation, the default address format (Substrate) is the Westend address.

b) Install WanMask

WanMask URL: http://wanmask.io/

c) Get test WND tokens

Apply for an account and enter the Westend Faucet Chatroom.

URL: https://app.element.io/#/room/#westend_faucet:matrix.org

Post idrip <WESTEND_ADDRESS> in the chat box.

d) Other necessary tools

Westend Explorer: https://westend.subscan.io/

Wanchain testnet explorer: https://testnet.wanscan.org/

wanWND smart contract address: 0xaFEC1dBD8DB90398cC710D3cb8006a08F5828696

In order to check the balance of wanWND, you can add wanWND in WanMask as a custom token.

4. Cross-chain transfer WND using WanBridge Web

Note: the following illustrates the procedures to move WND from Westend to Wanchain (testnet) and back.

4.1 Polkadot testnet -> Wanchain testnet

Go to WanBridge Web testnet website: https://bridge-testnet.wanchain.org/#/assets/

0*thxxYAiRJabWCaEe.png

Select WND and the chain pair PolkaTestnet<->Wanchain. Click convert.

0*pQsceG1FzHVNiR2B.png

Connect the Chrome extension of Polkadot wallet to WanBridge Web testnet. The From address is the Westend address from your Polkadot wallet. The To address is the Wanchain testnet address. Enter the quantity of WND that you want to transfer.

0*-ZE2yMZvRVTrtbUB.png

Be sure to select the Storeman Group with the name dev_***

0*YBfSLvwJgmoBGIiq.png

Click Confirm to enter the conversion information page. Double check the transaction information.

0*dw8j6yqzyIPJWAX1.png

Click Start.

0*WWM8bS-g6BeGhWvg.png

Sign the transaction using the Polkadot wallet.

0*xsBtLBLZ1KaWWFxo.png

Wait for the cross-chain transaction to complete. Once completed, the status will change to Completed. You can always check a transaction’s progress by clicking the bell.

0*4ZPVJ0WtZB73dA6Z.png

4.2 Wanchain testnet -> Polkadot testnet

The procedure is quite similar to Polkadot testnet -> Wanchain testnet.

Initiate a WND cross-chain transaction in WanBridge Web testnet. Connect your WanMask.

Switch the cross-chain direction to Wanchain ->Polkadot. Fill in the relevant parameters and choose dev_*** as Storeman Group.

0*hN-1T7VV94ofNIcZ.png

Click Confirm, Start, and sign the transaction using WanMask.

Wait until the transaction completes.

5. Cross-chain transaction Status types

Processing: After a user confirms a transaction, the Status is listed as Processing.

Converting In Progress: When WanBridge receives user TxHash, the status changes to Convert In Progress.

Completed: Once the Storeman Group successfully generates the mapped tokens to the address of the target chain.


About Wanchain

True DeFi is interoperable — Wanchain is the world’s premiere decentralised blockchain interoperability solution. Our mission is to drive blockchain adoption through interoperability by building fully decentralised bridges that connect the world’s many siloed blockchain networks. This cross-chain infrastructure empowers developers to build truly decentralised cross-chain applications to power the future of DeFi.

How do you rate this article?


63

0

ZooKeeper
ZooKeeper

ZooKeeper core team member, Wanchain ambassador


Wanchain
Wanchain

Cross-Chain DeFi Since 2017 – Wanchain empowers developers to build truly trustless, decentralized, cross-chain financial applications which connect with real world value

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.