Acquire Test Tokens
As a best practice, always test your applications thoroughly on testnet before going live on mainnet. When testing token transfers, you must have enough tokens and ensure the token pools have enough funds. Public faucets sometimes limit how many tokens a user can create and token pools might not have enough liquidity. To resolve these issues, CCIP supports two test tokens that you can mint permissionlessly so you don't run out of tokens while testing different scenarios.
Tokens
Two ERC20 test tokens are currently available on each testnet. You can find the token addresses for each testnet on the CCIP Directory.
Name | Decimals | Type | Description |
---|---|---|---|
CCIP-BnM | 18 | Burn & Mint | These tokens are minted on each testnet. When transferring these tokens between testnet blockchains, CCIP burns the tokens on the source chain and mint them on the destination chain. |
CCIP-LnM | 18 | Lock & Mint | These tokens are only minted on Ethereum Sepolia. On other testnet blockchains, the token representation is a wrapped/synthetic asset called clCCIP-LnM. When transferring these tokens from Ethereum Sepolia to another testnet, CCIP locks the CCIP-LnM tokens on the source chain and mint the wrapped representation clCCIP-LnM on the destination chain. Between non-Ethereum Sepolia chains, CCIP burns and mints the wrapped representation clCCIP-LnM. |
Mint Test Tokens
You can mint both of these tokens using the following function call on the token contract. This function acts like a faucet. Each call mints 10**18 units of a token to the specified address.
- For CCIP-BnM, you can call
drip
on all testnet blockchains. - For CCIP-LnM, you can call
drip
only on Ethereum Sepolia.
function drip(address to) external {
_mint(to, 1e18);
}
Mint tokens in the documentation
You can use this interface to connect your MetaMask wallet, select a testnet, and mint tokens to your wallet address. Alternatively, you can call these same functions in the block explorer (Read the Mint tokens in a block explorer section).
Connect your browser wallet to get started:
Mint tokens in a block explorer
Follow these steps to learn how to mint these tokens. The steps explain how to mint CCIP-BnM on Ethereum Sepolia:
-
Go to the CCIP Directory.
-
Go to Ethereum Sepolia section. You will find a list of active lanes where the source chain is Ethereum Sepolia. You will find the list of supported tokens you can transfer for each lane. You should find CCIP-BnM in the list for each testnet.
-
Click on the token address to display it on the block explorer (CCIP-BnM on Ethereum Sepolia Etherscan in this case).
-
Click the Contract tab and then on Write Contract to see the list of transactions. Notice Connect to Web3.
-
Click Connect to Web3 to connect your MetaMask wallet to the block explorer.
-
Once connected, you can call the
drip
function. -
Fill in the text field with your EOA, then click Write.
-
MetaMask will open and asks you to confirm the transaction.
-
After the transaction is confirmed, click View your transaction to view your transaction.
-
You should see a successful transaction confirming that 1 CCIP-BnM was sent to your EOA.
-
Follow this MetaMask guide to import CCIP-BnM in your wallet.