How to send tokens to Ethereum with Gravity Bridge
This guide will provide the information you’ll need to make a transfer of tokens native to Cosmos, across to Ethereum and ultimately onto a Decentralised Exchange (DEX).
It has been constructed using another Cosmos project (StarGaze) as the token that is being transferred across using the Gravity Bridge.
The process follows 3 distinct parts:
In order to transfer tokens from Cosmos to Ethereum, the Gravity Bridge chain is required to hold the tokens you wish to transfer. Therefore, the first step is to send the tokens from the chain you are transferring from on Cosmos, to the Gravity Bridge, via IBC.
The Gravity Bridge then will be able to transfer the tokens across the bridge, locking them up on the Cosmos side, and minting them on the Ethereum side
Finally, if you'd like to interact with DEX's such as UniSwap you will be required to add the token to your MetaMask using a ‘Contract Address’, and then connect this to your UniSwap account.
The final section of the guide will provide instructions on how to complete this process in reverse (i.e. transferring tokens from Ethereum to Cosmos).
Let’s do it…
The following instructions for this part use Spacestation itself for the IBC transfer of CHEQ tokens to the Gravity chain. You can however also do a direct IBC transfer within Keplr itself.
Connect your Keplr wallet containing the tokens you which to transfer.
Gravity to Ethereum with spacestation
This will take you through the login process using the browser extensions for both wallets (don’t worry about which side if on Source and which Destination at this stage).
Select the cheqd as the 'Source' chain
Select Source chain
Select the destination chain - this MUST be the Gravity Bridge chain.
Select Destination chain
Select the token you wish to transfer and enter the amount noting you'll need an additional amount to pay for gas fees.
A pop-up will appear which you'll need to approve for the transaction to go through.
Transfer popup one
Select Gravity Bridge as the Source, and Ethereum as the Destination.
The token you have sent to Gravity Bridge will now appear on the list within Gravity Bridge with the available amount listed. Enter the amount you wish to transfer.
Note: The transaction fees are high due to the costs of transactions on the Ethereum side. You can select either a day, an hour or instant, at increasing costs.
CHEQ to Ethereum transfer
Once you have completed the transfer you will need to wait for duration you have selected.
During this time you can get started with adding CHEQ to your MetaMask wallet.
Open your MetaMask wallet and select ‘import tokens’ at the bottom of the window
Metamask add chain
Select ‘Custom Token’ and enter the CHEQ 'Token Contract Address'.
Here are a selection of other Cosmos chains available thanks to the Gravity Bridge
When entered this will automatically retrive the CHEQ token symbol and denomination (10^9 for CHEQ). CHEQ will now appear in your list of assets on the MetaMask homepage.
Import token metamas
Now you can wait for CHEQ tokens that have been sent via Gravity Bridge to appear in your MetaMask wallet.