Deploy NTT to EVM Chains#
Native Token Transfers (NTT) enable seamless multichain transfers of ERC-20 tokens on supported EVM-compatible chains using Wormhole's messaging protocol. Instead of creating wrapped tokens, NTT allows native assets to move across chains while maintaining their original properties.
This guide walks you through deploying NTT on EVM chains, including setting up dependencies, configuring token compatibility, and using the NTT CLI to deploy in hub-and-spoke or burn-and-mint mode.
Prerequisites#
Before deploying NTT on EVM chains, ensure you have the following prerequisites:
- Node.js and npm installed.
- Bun installed.
- A wallet private key with tokens on supported chains.
- ERC-20 tokens already deployed on the source and destination chains.
Overview of the Deployment Process#
Deploying NTT on EVM chains follows a structured process:
-
Choose your token setup: Use an existing ERC-20 token or deploy a new one.
Deploy an ERC-20 Token on EVM
Use the example NTT token repository to deploy a basic ERC-20 token contract on testnet.
-
Install Foundry: Install the Forge CLI.
-
Clone the repository: Fetch the example contract repository.
-
Deploy the token contract: Deploy to testnet with your preferred name, symbol, minter, and owner addresses.
-
Mint tokens: Send tokens to your address.
Note
This token uses 18 decimals by default. All minting values must be specified in
wei
(1 token = 10^18). -
-
Choose your deployment model: Choose a deployment model. The NTT framework supports two deployment models: burn-and-mint and hub-and-spoke.
Burn-and-Mint
Tokens must implement the following non-standard ERC-20 functions:
burn(uint256 amount)
mint(address account, uint256 amount)
These functions aren't part of the standard ERC-20 interface. Refer to the
INttToken
interface for all required functions, errors, and events.INttToken
Interface// SPDX-License-Identifier: Apache 2 pragma solidity >=0.8.8 <0.9.0; interface INttToken { /// @notice Error when the caller is not the minter. /// @dev Selector 0x5fb5729e. /// @param caller The caller of the function. error CallerNotMinter(address caller); /// @notice Error when the minter is the zero address. /// @dev Selector 0x04a208c7. error InvalidMinterZeroAddress(); /// @notice Error when insufficient balance to burn the amount. /// @dev Selector 0xcf479181. /// @param balance The balance of the account. /// @param amount The amount to burn. error InsufficientBalance(uint256 balance, uint256 amount); /// @notice The minter has been changed. /// @dev Topic0 /// 0x0b5e7be615a67a819aff3f47c967d1535cead1b98db60fafdcbf22dcaa8fa5a9. /// @param newMinter The new minter. event NewMinter(address previousMinter, address newMinter); // NOTE: the `mint` method is not present in the standard ERC20 interface. function mint(address account, uint256 amount) external; // NOTE: the `setMinter` method is not present in the standard ERC20 interface. function setMinter(address newMinter) external; // NOTE: NttTokens in `burn` mode require the `burn` method to be present. // This method is not present in the standard ERC20 interface, but is // found in the `ERC20Burnable` interface. function burn(uint256 amount) external; }
You’ll also need to set mint authority to the relevant
NttManager
contract.Hub-and-Spoke
Tokens only need to be ERC-20 compliant. The hub chain serves as the source of truth for supply consistency, while only spoke chains need to support minting and burning. For example, if Ethereum is the hub and Polygon is a spoke:
- Tokens are locked on Ethereum.
- Tokens are minted or burned on Polygon.
This setup maintains a consistent total supply across all chains.
Example deployment scripts for both models are available in the
example-ntt-token
GitHub repository. -
Configure your chains: Use the NTT CLI to add EVM chains and configure deployment parameters.
- Set Mint Authority: Set the NTT Manager as a minter for your tokens on the relevant chains.
- For burn-and-mint mode, set the NTT Manager as a minter on all chains.
- For hub-and-spoke, set the NTT Manager as a minter only on spoke chains.
Set Up NTT#
Before deploying NTT contracts on EVM chains, you need to scaffold a project and initialize your deployment configuration.
Note
If you already have an NTT deployment to another chain (like Solana), you can skip the ntt new
and ntt init
commands. Simply navigate to your existing NTT project directory and proceed directly to the Deploy and Configure NTT section.
The NTT CLI manages deployments, configures settings, and interacts with the NTT system. Follow these steps to set up NTT using the CLI tool:
Install the NTT CLI and Scaffold a New Project
-
Install the NTT CLI:
curl -fsSL https://raw.githubusercontent.com/wormhole-foundation/native-token-transfers/main/cli/install.sh | bash
Verify installation:
-
Initialize a new NTT project:
-
Create the deployment config using the following command. This will generate a
deployment.json
file where your settings are stored:
Deploy and Configure NTT#
Once you've set up NTT, proceed with adding your EVM chains and deploying contracts.
-
Environment Setup: Ensure you have set up your environment correctly, open your terminal, and run the
export
commands: -
Deploy NTT to EVM: Add each chain you'll be deploying to using the
ntt add-chain
command. The following example demonstrates configuring NTT in burn-and-mint mode on Ethereum Sepolia and Arbitrum Sepolia:# Add each chain # The contracts will be automatically verified using the scanner API keys above ntt add-chain Sepolia --latest --mode burning --token INSERT_YOUR_TOKEN_ADDRESS ntt add-chain ArbitrumSepolia --latest --mode burning --token INSERT_YOUR_TOKEN_ADDRESS
The
ntt add-chain
command takes the following parameters:- Name of each chain.
- Version of NTT to deploy (use
--latest
for the latest contract versions). - Mode - either
burning
orlocking
. - Your token contract address.
While not recommended, you can pass the
-skip-verify
flag to thentt add-chain
command if you want to skip contract verification. -
Verify deployment status: After deployment, check if your
deployment.json
file matches the on-chain configuration using the following command:If needed, sync your local configuration with the on-chain configuration:
-
Configure rate limits: Set up inbound and outbound rate limits. By default, limits are set to 0 and must be updated before deployment. For EVM chains, values must be set using 18 decimals.
Open your
deployment.json
file and adjust the values based on your use case:"inbound": { "Arbitrum": "1000.000000000000000000" // inbound limit from Arbitrum to Ethereum } "outbound": { "Ethereum": "1000.000000000000000000" // outbound limit from Ethereum to Arbitrum }
This configuration ensures your rate limits align with the token’s precision on each chain, preventing mismatches that could block or miscalculate transfers. Before setting these values, confirm your token’s decimals on each chain by checking the token contract on the relevant block explorer.
-
Push the final deployment: Once rate limits are set, sync the on-chain configuration with local changes made to your
deployment.json
file.
After you deploy the NTT contracts, ensure that the deployment is properly configured and your local representation is consistent with the actual on-chain state by running ntt status
and following the instructions shown on the screen.
Set Mint Authority#
The final step in the deployment process is to set the NTT Manager as a minter of your token on all chains you have deployed to in burning
mode. When performing a hub-and-spoke deployment, it is only necessary to set the NTT Manager as a minter of the token on each spoke chain.
Note
The required NTT Manager address can be found in the deployment.json
file.
-
If you followed the
INttToken
interface, you can execute thesetMinter(address newMinter)
function. -
If you have a custom process to manage token minters, you should now follow that process to add the corresponding NTT Manager as a minter.
By default, NTT transfers to EVM blockchains support automatic relaying via the Wormhole relayer, which doesn't require the user to perform a transaction on the destination chain to complete the transfer.
NTT Manager Deployment Parameters#
This table compares the configuration parameters available when deploying the NTT Manager using the CLI versus those available during a manual deployment with a Forge script. It highlights which options are configurable via each method, whether values are auto-detected or hardcoded, and includes additional comments to help guide deployment decisions.
Parameter |
Forge Script | CLI | Both | Comments |
---|---|---|---|---|
token |
Input | --token <address> |
Yes | |
mode |
Input | --mode <locking/burning> |
Yes | Key decision: hub-and-spoke or mint-and-burn |
wormhole |
Input | Auto-detected via SDK/ChainContext |
Similar | |
wormholeRelayer |
Input | Auto-detected via on-chain query/SDK | Similar | |
specialRelayer |
Input | Not exposed | No | Take into consideration if using custom relaying. Not recommended |
decimals |
Input, overridable | Auto-detected via token contract, not overridable | Similar | |
wormholeChainId |
Queried from Wormhole contract | --chain (network param, mapped internally) |
Yes | |
rateLimitDuration |
Hardcoded (86400 ) |
Hardcoded (86400 ) |
Yes | Rate limit duration. A day is normal but worth deciding |
shouldSkipRatelimiter |
Hardcoded (false ) |
Hardcoded (false ) |
Yes | If rate limit should be disabled (when the manager supports it) |
consistencyLevel |
Hardcoded (202 ) |
Hardcoded (202 ) |
Yes | 202 (finalized) is the standard — lower is not recommended |
gasLimit |
Hardcoded (500000 ) |
Hardcoded (500000 ) |
Yes | |
outboundLimit |
Computed | Auto-detected/Hardcoded | Similar | Relative to rate limit |
Where to Go Next#
-
Test Your Deployment
Follow the NTT Post Deployment Guide for integration examples and testing instructions.
-
Deploy NTT to SVM Chains
Follow the guide to deploy and configure Wormhole's Native Token Transfers (NTT) for SVM chains.
-
View FAQs
Find answers to common questions about NTT.