Convert between native and wrapped tokens
Axelar supports cross-chain transfer of the following native tokens via their wrapped ERC-20 versions:
- AVAX (Avalanche)
- ETH (Ethereum)
- FTM (Fantom)
- GLMR (Moonbeam)
- MATIC (Polygon)
If you have native tokens but not wrapped tokens then you can convert your native to wrapped for use with Axelar. (Conversely, you can convert your wrapped back to native any time you choose.)
A Metamask account with some native tokens or wrapped tokens.
Visit the wrapped ERC-20 token contract on the appropriate block explorer:
- Avalanche Fuji testnet
- Ethereum Goerli testnet
- Fantom testnet
- Moonbase Alpha testnet
- Polygon Mumbai testnet
If you haven't already, import the wrapped ERC-20 token to your Metamask account in the appropriate network as described in Set up Metamask.
Click the "contract" tab, then click "write contract". (The above links should take you directly to "write contract".)
Click "connect to web3" to connect your Metamask account.
In the "deposit" field enter the amount of native token you wish to convert to wrapped token. (The following screenshot is for Ethereum.)
Click "write". Your Metamask wallet should appear---approve the transaction and wait for the transaction to get confirmed into the blockchain. Check your Metamask balances for the new wrapped tokens.
In the "withdraw" field enter the amount of wrapped tokens (denominated in Wei) you wish to convert to native.
For the "withdraw" field (to convert wrapped to native) the amount of wrapped tokens is denominated in Wei where 1 wrapped token = 10^18 Wei. Example: to convert
0.2 WETH to ETH enter
By contrast, for the "deposit" field (to convert native to wrapped tokens) the amount of native is denominated in native units. Example: to convert
0.2 ETH to WETH enter
As above, click "write", approve the transaction, and check your Metamask for the new native tokens.