Convert between native and wrapped tokens

Axelar supports cross-chain transfer of the following native tokens via their wrapped ERC-20 versions:

  • AVAX (Avalanche)
  • BNB (Binance)
  • ETH (Ethereum)
  • FIL (Filecoin)
  • 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.)

Prerequisites

A MetaMask account with some native tokens or wrapped tokens.

Connect MetaMask to a block explorer

Visit the wrapped ERC-20 token contract on the appropriate block explorer:

Testnets:

Mainnets:

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.

Convert native to wrapped

In the “deposit” field enter the amount of native token you wish to convert to wrapped token. (The following screenshot is for Ethereum.)

WETH conversion screenshot

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.

Convert wrapped to native

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 200000000000000000.

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 0.2.

As above, click “write”, approve the transaction, and check your MetaMask for the new native tokens.

Edit on GitHub