Developers Forum for XinFin XDC Network

Raj Shah
Raj Shah

Posted on

The Comprehensive XDC Crosschain Guide — Bridging XDC and USDT

A guide on how to bridge XDC using XDCPay Chrome extension, including how to bridge USDT to XinFin Network.

Image description

Download XDC Pay Chrome extension here: https://chrome.google.com/webstore/detail/xdcpay/bocpokimicclpaiekenaeelehdjllofo

WanBridge: https://bridge.wanchain.org/#/

Overview
In this guide we’ll be doing four crosschain transactions:

  • Sending XDC from XDC Network to Wanchain

  • Sending XDC from Wanchain back to XDC Network

  • Sending USDT from Ethereum to XDC Network

  • Sending USDT from Wanchain to XDC Network

We will also cover how to acquire wanUSDT on WanSwap

Note: Make sure you have MetaMask installed and connected to Wanchain network, and also have the XDC Pay Chrome extension setup and funded with some XDC.

Note: Bridging USDC between chains follows the exact same process as USDT. Just choose USDC in place of USDT.

Bridging XDC from XDC Network to Wanchain

Head over to WanBridge Web, then click “Connect to Wallet”.

Image description

Click on XDCPay as seen below.

Image description

Select “XDC” from the drop-down menu, then select “From: XDC Network” and “To: Wanchain”. Enter your destination address in the Recipient field (Your Wanchain address) and the amount you wish to crosschain convert, then click “Next”.

Image description

Confirm your details, then click “Confirm”.

Image description

Confirm the XDC Pay extension pop-ups (Click Submit)

Image description

Your XDC crosschain transaction will now begin processing, wait for it to show “Success”.

Image description

Add XDC token details to your MetaMask wallet:

  • Token Contract Address: 0xc7dca84A81324075e90A39250B0e07b7Daf4F45d

  • Token Symbol: XDC

  • Token Decimal: 18

Click Import Tokens, then you should see your XDC balance reflect.

Image description

Bridging XDC from Wanchain to XDC Network

Head over to WanBridge Web, then click “Connect to Wallet”, then click on “MetaMask”.

Image description

Select “XDC” from the drop-down menu, then select “From: Wanchain” and “To: XDC Network”. Enter your destination address in the Recipient field (Your XDC address) and the amount you wish to crosschain convert, then click “Next”.

Image description

Confirm your details then click on “Confirm”.

Image description

Confirm the MetaMask pop-ups, there will be two here if you are a first-time user, confirm them both.

Image description

Wait for your crosschain transaction status to show “Success”.

Image description

Congrats, your XDC transaction is now complete, check your XDC wallet address balance!

Bridging USDT from Ethereum to XinFin Network

Make sure you have your MetaMask connected to Ethereum Mainnet, then connect to WanBridge.

Select “USDT” from the drop-down menu, then select “From: Ethereum” and “To: XDC Network”. Enter your destination address in the Recipient field (Your XinFin address) and the amount you wish to crosschain convert, then click “Next”.

Image description

Click “Confirm” to continue.

Image description

Confirm all MetaMask pop-ups. Notice the very high fee of $19.

Image description

Wait for your transaction to show “Success”, then check your XinFin wallet address for your USDT balance.

Image description

How to acquire USDT on Wanchain network via WanSwap

Head over to WanSwap and connect your MetaMask address. Make sure you are connected to Wanchain network, and have your address funded with some WAN.

From the drop-down menu, select wanUSDT then enter the amount you wish to swap (in our case, we are swapping ~45 Wan for 10 wanUSDT). Finally, click “Swap” to continue.

Image description

Confirm the amount you wish to swap, then click “Confirm Swap”.

Image description

Confirm the MetaMask pop-ups, there will be two if this is your first time swapping on WanSwap.

Image description

Once your swap has completed, you’ll see the notification on the top right-hand corner.

Image description

Bridging USDT from Wanchain to XinFin Network

Make sure you have your MetaMask connected to Wanchain Network, then connect to WanBridge.

Select “USDT” from the drop-down menu, then select “From: Wanchain” and “To: XDC Network”. Enter your destination address in the Recipient field (Your XinFin address) and the amount you wish to crosschain convert, then click “Next”.

Image description

Confirm your details, then click “Confirm” to continue.

Image description

Confirm your MetaMask pop-ups.

Notice how cheap the fees are when bridging from Wanchain ($0.0001), compared to the $19 fee to bridge from Ethereum.

Image description

Wait for your transaction to show “Success”, then check your XinFin wallet address for your USDT.

Make sure you add the USDT token to XDC Pay extension: xdcD4B5f10D61916Bd6E0860144a91Ac658dE8a1437

Image description

Congrats, you are now a crosschain master! See you in the next guide ;)

Discussion (0)