Don't miss Build Games$1M Builder Competition

Bridge Tokens

Transfer your native token from your L1 to C-Chain as an ERC-20.

Bridge Your Native Token to C-Chain

With your bridge configured, you can now transfer your L1's native token to C-Chain, where it becomes an ERC-20 token.

Connect to Your L1

Switch your wallet to your L1 (the source chain where your native token lives).

You need native tokens (TEST) for the amount you want to bridge, plus additional tokens for gas.

Bridge using the Token Transfer tool

Use the tool below to initiate the cross-chain transfer:

  1. Select your NativeTokenHome as the source bridge contract
  2. Select your ERC20TokenRemote (on C-Chain) as the destination bridge contract
  3. Enter the amount of native tokens to bridge

Make sure you have:

  1. Successfully registered the remote with the home
  2. Native tokens in your wallet to bridge
  3. Additional native tokens for gas fees
Builder Console

Cross-Chain Token Bridge

Send tokens from the current chain (undefined) to another chain.

Please select a destination blockchain

Max: 0

Recipient Address
Gas Limit
250000

Switch to C-Chain and check your ERC-20 balance

Switch your wallet to Fuji C-Chain and check your ERC-20 balance.

You can add the ERC20TokenRemote contract address as a custom token in your wallet to see the balance.

What Happened

  1. Your native tokens were wrapped to WTEST and locked in NativeTokenHome
  2. An ICM message was sent to C-Chain via the relayer
  3. ERC20TokenRemote minted ERC-20 tokens representing your native token
  4. ERC-20 tokens were credited to your address on C-Chain

Bridging Back

To bridge ERC-20 tokens back to your L1 as native tokens:

  1. Switch to C-Chain
  2. Use the Token Transfer tool with reversed source/destination
  3. ERC-20 tokens will be burned and native tokens released on your L1

Summary

You've successfully:

  • Created an L1 with a custom native token
  • Deployed a wrapped token (WTEST)
  • Deployed NativeTokenHome on your L1
  • Deployed ERC20TokenRemote on C-Chain
  • Bridged native tokens → ERC-20

What's Next?

In the next chapter, you'll learn how to use AVAX (C-Chain's native token) as the native gas token for your L1.

Is this guide helpful?