Deploy a Home Contract

Deploy the Token Home on C-chain

We will deploy two Avalanche Interchain Token Transfer contracts. One on the source chain (which is C-chain in our case) and another on the destination chain (Echo in our case).

Deploy ERC20Home Contract

Since we're covering an ERC20 > ERC20 bridge, make sure to set the Transferrer type to "ERC20" and input the ERC20 token address you previously deployed in the token address field. Then deploy the ERC20Home contract on the Fuji testnet using our toolbox:

Make sure you have:

  1. Deployed your ERC-20 token (from Deploy ERC-20 Token)
  2. Have enough test AVAX for gas fees
Logo

Deploy Token Home Contract

Deploy the TokenHome contract for your token.

This will deploy a TokenHome contract to your connected network (Chain ID: 0). This contract serves as the home chain endpoint for cross-chain token transfers.

This is automatically fetched from the token contract.

Save the ERC-20 Home Address

After deployment, you'll need to save the contract address for future steps. You can find it in the deployment confirmation in the toolbox

Note

Keep this address handy as you'll need it for the next steps in the bridging process.

Is this guide helpful?

On this page