Deploy ERC20 Token Remote
Deploy and register the ERC20TokenRemote contract to the Avalanche C-Chain.
Deploy ERC20TokenRemote on C-Chain
Using the forge create command, we will deploy the ERC20TokenRemote.sol contract, passing in the following constructor arguments:
- Interchain Messaging Registry Address (for C-Chain)
- Interchain Messaging Manager (our funded address)
- Source Blockchain ID (hexidecimal representation of our Avalanche L1's Blockchain ID
myblockchain) - Token Home Address (address of NativeTokenHome.sol deployed on our Avalanche L1
myblockchainin the last step) - Token Name (input in the constructor of the wrapped token contract)
- Token Symbol (input in the constructor of the wrapped token contract)
- Token Decimals (uint8 integer representing number of decimal places for the ERC20 token being created; typically 18 decimals)
Register ERC20TokenRemote on C-Chain with NativeTokenHome on myblockchain
After deploying the bridge contracts, you'll need to register the remote bridge by sending a dummy message using the registerWithHome method. This message includes details which inform the home bridge about your destination blockchain and bridge settings, eg. initialReserveImbalance.
Is this guide helpful?




