diff --git a/pages/resources/meta.json b/pages/resources/meta.json index 3e3746893..3a4072c60 100644 --- a/pages/resources/meta.json +++ b/pages/resources/meta.json @@ -4,5 +4,6 @@ "testnet-2": "Testnet-2", "satellite": "Satellite", "metamask": "Set up Metamask", - "supported": "Supported Networks" + "supported": "Supported Networks", + "weth": "Convert ETH <> WETH" } diff --git a/pages/resources/weth.md b/pages/resources/weth.md new file mode 100644 index 000000000..23ebb9ed7 --- /dev/null +++ b/pages/resources/weth.md @@ -0,0 +1,43 @@ +# Convert between ETH and WETH + +import Callout from 'nextra-theme-docs/callout' + +Axelar supports cross-chain transfer of Wrapped Ether (WETH) token from the Ethereum mainnet. WETH is an ERC-20 version of Ether (ETH), Ethereum's native token. + +If you have ETH tokens but not WETH tokens then you can convert your ETH to WETH for use with Axelar. (Conversely, you can convert your WETH back to ETH any time you choose.) + +## Prerequisites + +- A Metamask account with some ETH tokens or WETH tokens. +- If you haven't already, import the WETH ERC-20 token to your Metamask account in the Ethereum network as described in [Set up Metamask](metamask). + +## Connect Metamask to Etherscan + +Visit the WETH ERC-20 token contract on etherscan: + +- [Ethereum Ropsten testnet](https://ropsten.etherscan.io/address/0xc778417e063141139fce010982780140aa0cd5ab#writeContract) +- [Ethereum mainnet](https://etherscan.io/address/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2#writeContract) + +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 ETH to WETH + +In the "deposit" field enter the amount of ETH you wish to convert to WETH. + +![WETH conversion screenshot](/images/weth-etherscan.png) + +Click "write". Your Metamask wallet should appear---approve the transaction and wait for the transaction to get confirmed into the Ethereum blockchain. Check your Metamask balances for the new WETH tokens. + +## Convert WETH to ETH + +In the "withdraw" field enter the amount of WETH (denominated in Wei) you wish to convert to ETH. + + +For the "withdraw" field (to convert WETH to ETH) the amount of WETH is denominated in Wei where 1 WETH = 10^18 Wei. Example: to convert `0.2` WETH to ETH enter `200000000000000000`. + +By contrast, for the "deposit" field (to convert ETH to WETH) the amount of ETH is denominated in ETH. 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 ETH tokens. diff --git a/public/images/weth-etherscan.png b/public/images/weth-etherscan.png new file mode 100644 index 000000000..87888a371 Binary files /dev/null and b/public/images/weth-etherscan.png differ