Don't miss Build Games$1M Builder Competition

Introduction

Learn how to bridge native AVAX from Fuji to become native gas tokens on your L1.

Native to Native Token Bridge

In this section, you'll learn how to bridge native AVAX from Fuji C-Chain to your own L1, where it becomes the native gas token.

Use Case

This bridge type is ideal when:

  • You want to use AVAX as your chain's gas currency
  • You're building a chain that's part of the Avalanche ecosystem
  • You need shared security via AVAX staking value

Architecture Overview

Source Chain (Fuji C-Chain)                 Destination Chain (Your L1)
┌──────────────────────────────┐           ┌──────────────────────────────┐
│                              │           │                              │
│  AVAX (Native) → WAVAX       │           │  Native Token (minted AVAX)  │
│       ↓                      │           │       ↑                      │
│  NativeTokenHome  ───────────│───────────│  NativeTokenRemote           │
│  (wraps & locks AVAX)        │    ICM    │  (calls Native Minter)       │
│                              │           │                              │
└──────────────────────────────┘           └──────────────────────────────┘

Contracts Involved

ContractChainPurpose
NativeTokenHomeFuji C-ChainWraps AVAX to WAVAX, locks when bridging out, releases when bridging back
NativeTokenRemoteYour L1Calls Native Minter to create native tokens
Native Minter PrecompileYour L1System contract that mints native tokens
WAVAXFuji C-ChainERC-20 wrapper for native AVAX

Key Difference from Chapter 1

ERC-20 → Native (Chapter 1)Native → Native (Chapter 2)
Source TokenUSDC (ERC-20)AVAX (Native)
Home ContractERC20TokenHomeNativeTokenHome
WrappingNot neededAVAX wraps to WAVAX
Use CaseStablecoin gas tokenAVAX-based ecosystem

WAVAX (Wrapped AVAX)

Since native AVAX isn't an ERC-20 token, NativeTokenHome uses WAVAX internally:

  1. User sends AVAX to NativeTokenHome
  2. Contract wraps AVAX to WAVAX
  3. WAVAX is locked in the contract
  4. Bridge message is sent via ICM
  5. On your L1, native tokens are minted

Fuji C-Chain already has a deployed WAVAX contract. The toolbox will automatically detect and use it.

Key Requirement: Native Minter Precompile

Your L1 must have the Native Minter precompile enabled. This precompile:

  • Is a built-in Avalanche L1 feature
  • Allows authorized contracts to mint native tokens
  • Must be configured in the chain's genesis
  • Address: 0x0200000000000000000000000000000000000001

Important: You'll create an L1 with Native Minter enabled as the first step of this chapter.

Deployment Flow

Here's what we'll build:

StepActionChain
1Create L1 with Native MinterFuji (P-Chain)
2Set up relayerLocal (Docker)
3Deploy NativeTokenHomeFuji C-Chain
4Deploy NativeTokenRemoteYour L1
5Register + CollateralizeYour L1 → Fuji
6Bridge AVAX → NativeFuji → Your L1

What You'll Achieve

By the end of this section:

  • Your L1 uses AVAX as the native gas token
  • Users can bridge AVAX from Fuji to get native tokens for gas
  • The bridge is fully collateralized and secure

Token Backing: Every native token minted on your L1 is backed 1:1 by WAVAX (wrapped AVAX) locked in the NativeTokenHome contract on Fuji.

Let's get started by creating your L1!

Is this guide helpful?