How to Wrap AI3 Tokens (Mainnet and Taurus Testnet)
Native AI3 tokens on Auto EVM are similar to ETH on the Ethereum network - they are not ERC-20 tokens, which is sometimes a requirement for certain use-cases.
Fortunately, there are ERC-20 contracts on both mainnet and testnet Auto EVM that allow you to “wrap” your tokens. This guide walks you through how to do that.
The Contracts
Mainnet WAI3 Contract
Mainnet WAI3 Contract: 0x7ba06C7374566c68495f7e4690093521F6B991bb
.
View contract: https://explorer.auto-evm.mainnet.autonomys.xyz/token/0x7ba06C7374566c68495f7e4690093521F6B991bb
Taurus Testnet WAI3 Contract
Taurus Testnet WAI3 Contract: 0x205E735a2C73228fA13EeB70720C7841BDf65EDB
.
View contract: https://blockscout.taurus.autonomys.xyz/token/0x205E735a2C73228fA13EeB70720C7841BDf65EDB?tab=contract
Wrapping AI3 for WAI3
We will use MetaMask for this guide, though any EVM compatible wallet should work. First, make sure you have the appropriate Auto EVM network added to MetaMask.
Network Name: Autonomys EVM
New RPC URL: https://auto-evm.mainnet.autonomys.xyz/ws
Chain ID: 870
Currency Symbol: AI3
Auto EVM is also available on the Taurus testnet
Network Name: Autonomys EVM
New RPC URL: https://auto-evm.taurus.autonomys.xyz/ws
Chain ID: 490000
Currency Symbol: tAI3
The quickest way to add the network is to use this button at the bottom of Blockscout (use the contract link above):
Once that’s done you should be able to see your Auto EVM tAI3 balance on MetaMask when you select the network.
To convert some tAI3 to WAI3 you just need to send it to the contract. You will see a warning that you are about to send to a token contract. This is expected.
Once you’ve accepted the warning you can click on “Continue”.
NOTE: You may need to increase the gas fee if you see a failure when executing the transaction. If all has gone well you should end up seeing the contract interaction in the MetaMask Activity tab.
To view your WAI3 you will need to add the token contract by importing it in MetaMask.
Enter the WAI3 contract address and you will be able to see your balance under the Tokens tab in MetaMask.
Unwrapping WAI3
To unwrap your WAI3 tokens (convert them back to the original tAI3 tokens), you’ll need to interact with the withdraw
function in the WAI3 contract. Here’s how to do it.
First, make sure you have your wallet holding the WAI3 connected to the contract linked above. Ensure you are on the “Write” tab of the contract and look for the withdraw
method.
Enter the amount you want to unwrap as a parameter. The value entered needs to be in Shannons - the Autonomys equivalent of Ethereum’s wei. The Blockscout UI has a button 10^18
to automatically add the extra 18 zeroes required to convert between the two.
Once you’re ready, hit the “Write” button and approve the transaction in your wallet. You should now see the WAI3 has ben converted back to native tAI3.