CCIP Tutorial: Deploy & Register Cross-Chain Tokens with Remix IDE
This tutorial will guide you through enabling your tokens in CCIP using only your web browser and Remix IDE. You'll learn how to deploy tokens and set up token pools without needing to install any development tools.
How to Follow This Tutorial
This is an interactive, step-by-step tutorial with progress tracking:
- Progress Tracking: A navigation panel on the right shows your progress through the tutorial
- Checkboxes: Each step has a checkbox - mark it when you complete that step
- Contract Addresses: Some steps are automatically marked complete when you provide the deployed contract addresses
- Sequential Flow: Steps should be completed in order, as each builds upon the previous ones
Before You Begin
1. Web Browser Setup
Configure your browser with the required extensions and networks
2. Native Gas Tokens
Acquire tokens for transaction fees
Select Your Blockchains
Choose the source and destination blockchains for your cross-chain token
Import Required Contracts
Import and compile the token contracts in Remix IDE
- Open the pre-configured token contract in Remix:
- Wait a few seconds for Remix to automatically compile all contracts.
Tutorial
Source Blockchain Setup
- Configure Remix
- Open the "Deploy & Run Transactions" tab
- Set Environment to "Injected Provider - MetaMask"
- Select BurnMintERC677 contract
- Set Parameters
Configure your token by setting these required parameters in Remix:
namestringThe full name of your token that users will see
"My Cross Chain Token"symbolstringA short ticker symbol for your token (usually 3-4 letters)
"MCCT"decimalsuint8Number of decimal places your token will support (18 is standard)
18maxSupplyuint256The maximum amount of tokens that can ever exist (0 means unlimited)
0 - Deploy Contract
- Click "Deploy" and confirm in MetaMask
- Copy your token address from "Deployed Contracts"
- Verify Contract (Optional)
- Access the Blockchain ExplorerBlockchain explorer information will be available once you select a network.
- Verify Using Remix IDERemix IDE Guide
Official guide for verifying contracts using the Remix IDE verification plugin
View Guide ↗Chainlink TutorialStep-by-step tutorial for contract verification on blockchain explorers
View Tutorial ↗ - Confirm Verification
- Return to your contract on the blockchain explorer
- Look for a green checkmark ✓ or "Verified" status
- You should now see your contract's source code in the "Code" tab
Contract verification link will be available once you select a network.
- Access the Blockchain Explorer
- Register as Admin
- In the "Deploy & Run Transactions" tab, select RegistryModuleOwnerCustom contract
- Click "At Address" with:Contract: RegistryModuleOwnerCustom
[Select source blockchain first] - The RegistryModuleOwnerCustom will be displayed in the "Deployed Contracts" section
- Click on the RegistryModuleOwnerCustom contract address to open the contract details
- Call
registerAdminViaOwner:registerAdminViaOwnerRegister yourself as the CCIP administrator for your token⚠️ You must be the token owner to call this functionParameters:tokenaddressThe token contract you want to administer
Your deployed token address - Confirm the transaction in MetaMask
- Accept Admin Role
- In the "Deploy & Run Transactions" tab, select TokenAdminRegistry contract
- Click "At Address" with:Contract: TokenAdminRegistry
[Select source blockchain first] - The TokenAdminRegistry will be displayed in the "Deployed Contracts" section
- Click on the TokenAdminRegistry contract address to open the contract details
- Call
acceptAdminRole:acceptAdminRoleAccept your role as CCIP administrator for your token⚠️ Must be called after registerAdminViaOwner is confirmedParameters:tokenaddressThe token contract to accept administrator role for
Your deployed token address - Confirm the transaction in MetaMask
- Choose Pool TypeSelect the appropriate pool type based on your token's characteristics and requirements
- Configure Remix
- Open the "Deploy & Run Transactions" tab
- Set Environment to "Injected Provider - MetaMask"
- Select BurnMintTokenPool contract
- Set Parameters
Configure your pool by setting these required parameters in Remix:
tokenaddressAddress of the token to be minted/burned
localTokenDecimalsuint8Number of decimals for your token
18allowlistaddress[]Addresses allowed to transfer tokens (empty array for no restrictions)
[]rmnProxyaddressAddress of the RMN contract
[Select source blockchain first]routeraddressAddress of the CCIP Router contract
[Select source blockchain first] - Deploy Contract
- Click "Deploy" and confirm in MetaMask
- Copy your pool address from "Deployed Contracts"
- Verify Contract (Optional)
- Access the Blockchain ExplorerBlockchain explorer information will be available once you select a network.
- Verify Using Remix IDERemix IDE Guide
Official guide for verifying contracts using the Remix IDE verification plugin
View Guide ↗Chainlink TutorialStep-by-step tutorial for contract verification on blockchain explorers
View Tutorial ↗ - Confirm Verification
- Return to your contract on the blockchain explorer
- Look for a green checkmark ✓ or "Verified" status
- You should now see your contract's source code in the "Code" tab
Contract verification link will be available once you select a network.
- Access the Blockchain Explorer
- Configure Registry
- In the "Deploy & Run Transactions" tab, select TokenAdminRegistry contract
- Click "At Address" with:Contract: TokenAdminRegistry
[Select source blockchain first] - Click on the TokenAdminRegistry contract to open its details
- Call
setPool:setPoolEnable your token for CCIP by registering its token pool⚠️ You must be the token admin to call this functionParameters:localTokenaddressThe token to enable for CCIP
pooladdressThe token pool that will handle cross-chain transfers
- Confirm the transaction in MetaMask
Destination Blockchain Setup
- Configure Remix
- Open the "Deploy & Run Transactions" tab
- Set Environment to "Injected Provider - MetaMask"
- Select BurnMintERC677 contract
- Set Parameters
Configure your token by setting these required parameters in Remix:
namestringThe full name of your token that users will see
"My Cross Chain Token"symbolstringA short ticker symbol for your token (usually 3-4 letters)
"MCCT"decimalsuint8Number of decimal places your token will support (18 is standard)
18maxSupplyuint256The maximum amount of tokens that can ever exist (0 means unlimited)
0 - Deploy Contract
- Click "Deploy" and confirm in MetaMask
- Copy your token address from "Deployed Contracts"
- Verify Contract (Optional)
- Access the Blockchain ExplorerBlockchain explorer information will be available once you select a network.
- Verify Using Remix IDERemix IDE Guide
Official guide for verifying contracts using the Remix IDE verification plugin
View Guide ↗Chainlink TutorialStep-by-step tutorial for contract verification on blockchain explorers
View Tutorial ↗ - Confirm Verification
- Return to your contract on the blockchain explorer
- Look for a green checkmark ✓ or "Verified" status
- You should now see your contract's source code in the "Code" tab
Contract verification link will be available once you select a network.
- Access the Blockchain Explorer
- Register as Admin
- In the "Deploy & Run Transactions" tab, select RegistryModuleOwnerCustom contract
- Click "At Address" with:Contract: RegistryModuleOwnerCustom
[Select destination blockchain first] - The RegistryModuleOwnerCustom will be displayed in the "Deployed Contracts" section
- Click on the RegistryModuleOwnerCustom contract address to open the contract details
- Call
registerAdminViaOwner:registerAdminViaOwnerRegister yourself as the CCIP administrator for your token⚠️ You must be the token owner to call this functionParameters:tokenaddressThe token contract you want to administer
Your deployed token address - Confirm the transaction in MetaMask
- Accept Admin Role
- In the "Deploy & Run Transactions" tab, select TokenAdminRegistry contract
- Click "At Address" with:Contract: TokenAdminRegistry
[Select destination blockchain first] - The TokenAdminRegistry will be displayed in the "Deployed Contracts" section
- Click on the TokenAdminRegistry contract address to open the contract details
- Call
acceptAdminRole:acceptAdminRoleAccept your role as CCIP administrator for your token⚠️ Must be called after registerAdminViaOwner is confirmedParameters:tokenaddressThe token contract to accept administrator role for
Your deployed token address - Confirm the transaction in MetaMask
- Choose Pool TypeSelect the appropriate pool type based on your token's characteristics and requirements
- Configure Remix
- Open the "Deploy & Run Transactions" tab
- Set Environment to "Injected Provider - MetaMask"
- Select BurnMintTokenPool contract
- Set Parameters
Configure your pool by setting these required parameters in Remix:
tokenaddressAddress of the token to be minted/burned
localTokenDecimalsuint8Number of decimals for your token
18allowlistaddress[]Addresses allowed to transfer tokens (empty array for no restrictions)
[]rmnProxyaddressAddress of the RMN contract
[Select destination blockchain first]routeraddressAddress of the CCIP Router contract
[Select destination blockchain first] - Deploy Contract
- Click "Deploy" and confirm in MetaMask
- Copy your pool address from "Deployed Contracts"
- Verify Contract (Optional)
- Access the Blockchain ExplorerBlockchain explorer information will be available once you select a network.
- Verify Using Remix IDERemix IDE Guide
Official guide for verifying contracts using the Remix IDE verification plugin
View Guide ↗Chainlink TutorialStep-by-step tutorial for contract verification on blockchain explorers
View Tutorial ↗ - Confirm Verification
- Return to your contract on the blockchain explorer
- Look for a green checkmark ✓ or "Verified" status
- You should now see your contract's source code in the "Code" tab
Contract verification link will be available once you select a network.
- Access the Blockchain Explorer
- Configure Registry
- In the "Deploy & Run Transactions" tab, select TokenAdminRegistry contract
- Click "At Address" with:Contract: TokenAdminRegistry
[Select destination blockchain first] - Click on the TokenAdminRegistry contract to open its details
- Call
setPool:setPoolEnable your token for CCIP by registering its token pool⚠️ You must be the token admin to call this functionParameters:localTokenaddressThe token to enable for CCIP
pooladdressThe token pool that will handle cross-chain transfers
- Confirm the transaction in MetaMask
Configure Cross-Chain Communication
Source Chain Configuration
- Grant Burn and Mint Privileges
- In the list of deployed contracts, select the BurnMintERC677 at
- Click to open the contract details
- Call
grantMintAndBurnRoles:grantMintAndBurnRolesGrant mint and burn privileges to your token pool for cross-chain transfers⚠️ You must be the token contract owner to call this functionParameters:burnAndMinteraddressAddress to grant mint and burn roles to (your token pool)
- Confirm the transaction in MetaMask
- In the list of deployed contracts, select the BurnMintERC677 at
- Configure Pool⚠️ Please select valid blockchains first⚠️ Please deploy your token pool before proceeding⚡️
Current Chain Prerequisites
- Select valid blockchains for the transfer
- Deploy your token pool on the current chain
- Verify Configuration
- Open the "Deploy & Run Transactions" tab in Remix
- Select your token pool contract:LockReleaseTokenPool
- Click the contract to view its functions
- Verify Remote Token
- Call
getRemoteToken:getRemoteTokenRetrieves the ABI-encoded address of your token on the remote chainParameters:remoteChainSelectoruint64Chain selector for undefined
Returns:bytesABI-encoded address of the token on the remote chainExpected Result:Waiting for remote token address...
- Call
- Verify Remote Pools
- Call
getRemotePools:getRemotePoolsReturns all registered token pools on the remote chainParameters:remoteChainSelectoruint64Chain selector for undefined
Returns:bytes[]Array of ABI-encoded addresses of all registered pools on the remote chainExpected Result:Waiting for remote pool address...
- Call
- Verify Rate Limiters
- Call
getCurrentInboundRateLimiterState:getCurrentInboundRateLimiterStateVerifies your inbound transfer rate limitsParameters:remoteChainSelectoruint64Chain selector for undefined
Returns:TokenBucketCurrent state of the inbound rate limiterExpected Result:Tokens0Last UpdatedCurrent block timestampStatusfalseCapacity0Rate0 - Call
getCurrentOutboundRateLimiterState:getCurrentOutboundRateLimiterStateVerifies your outbound transfer rate limitsParameters:remoteChainSelectoruint64Chain selector for undefined
Returns:TokenBucketCurrent state of the outbound rate limiterExpected Result:Tokens0Last UpdatedCurrent block timestampStatusfalseCapacity0Rate0
- Call
Destination Chain Configuration
- Grant Burn and Mint Privileges
- In the list of deployed contracts, select the BurnMintERC677 at
- Click to open the contract details
- Call
grantMintAndBurnRoles:grantMintAndBurnRolesGrant mint and burn privileges to your token pool for cross-chain transfers⚠️ You must be the token contract owner to call this functionParameters:burnAndMinteraddressAddress to grant mint and burn roles to (your token pool)
- Confirm the transaction in MetaMask
- In the list of deployed contracts, select the BurnMintERC677 at
- Configure Pool⚠️ Please select valid blockchains first⚠️ Please deploy your token pool before proceeding⚡️
Current Chain Prerequisites
- Select valid blockchains for the transfer
- Deploy your token pool on the current chain
- Verify Configuration
- Open the "Deploy & Run Transactions" tab in Remix
- Select your token pool contract:LockReleaseTokenPool
- Click the contract to view its functions
- Verify Remote Token
- Call
getRemoteToken:getRemoteTokenRetrieves the ABI-encoded address of your token on the remote chainParameters:remoteChainSelectoruint64Chain selector for undefined
Returns:bytesABI-encoded address of the token on the remote chainExpected Result:Waiting for remote token address...
- Call
- Verify Remote Pools
- Call
getRemotePools:getRemotePoolsReturns all registered token pools on the remote chainParameters:remoteChainSelectoruint64Chain selector for undefined
Returns:bytes[]Array of ABI-encoded addresses of all registered pools on the remote chainExpected Result:Waiting for remote pool address...
- Call
- Verify Rate Limiters
- Call
getCurrentInboundRateLimiterState:getCurrentInboundRateLimiterStateVerifies your inbound transfer rate limitsParameters:remoteChainSelectoruint64Chain selector for undefined
Returns:TokenBucketCurrent state of the inbound rate limiterExpected Result:Tokens0Last UpdatedCurrent block timestampStatusfalseCapacity0Rate0 - Call
getCurrentOutboundRateLimiterState:getCurrentOutboundRateLimiterStateVerifies your outbound transfer rate limitsParameters:remoteChainSelectoruint64Chain selector for undefined
Returns:TokenBucketCurrent state of the outbound rate limiterExpected Result:Tokens0Last UpdatedCurrent block timestampStatusfalseCapacity0Rate0
- Call