Cross-Chain Token Setup: BurnMint with Direct Mint Authority Transfer

This comprehensive tutorial demonstrates how to create and configure bidirectional cross-chain tokens using Chainlink's Cross-Chain Interoperability Protocol (CCIP) between Solana Devnet and Ethereum Sepolia. You will implement the direct mint authority transfer approach within Path A from the CCIP Cross-Chain Token Integration Guide.

Path A Mint Authority Options:

  • Direct Transfer (this tutorial): Transfer mint authority directly to Pool Signer PDA - suitable for development and testing
  • Multisig Setup: Create SPL token multisig with Pool Signer PDA as a member - recommended for production

This tutorial focuses on the simpler direct transfer approach for development environments, using BurnMint token pools to enable autonomous cross-chain token transfers.

Tutorial Approach

This tutorial provides step-by-step instructions and explains what each command does. For detailed implementation code explanations, refer to the comprehensive READMEs in both repositories:

The READMEs contain detailed technical explanations, troubleshooting guides, and advanced configuration options.

Prerequisites

This tutorial requires setting up two different repositories in separate terminal windows. Follow the setup instructions for both environments before proceeding.

Development Environment Requirements

System Requirements:

  • Anchor and Solana CLI Tools: Install following the installation guide. Requires Rust to be installed.
  • Node.js v20 or higher: Use the nvm package to install and manage versions. Verify with node -v
  • Yarn: For dependency management
  • Git: For cloning repositories

Terminal 1: Solana Starter Kit Setup

Clone and setup the Solana Starter Kit:

git clone https://github.com/smartcontractkit/solana-starter-kit.git && cd solana-starter-kit

Install dependencies:

yarn install

Configure your Solana environment:

# Set Solana CLI to use devnet
solana config set --url https://api.devnet.solana.com

# Set your keypair (create one if needed)
solana config set --keypair ~/.config/solana/id.json

# If you do not have a keypair, create one:
solana-keygen new --outfile ~/.config/solana/id.json

Fund your Solana wallet:

# Get your wallet address
solana address

# Request SOL from the devnet faucet
solana airdrop 2

Verify your setup:

# Check your SOL balance
solana balance

# Verify you are on devnet
solana config get

Terminal 2: Smart Contract Examples Setup

Clone the repository and navigate to the Hardhat project:

git clone https://github.com/smartcontractkit/smart-contract-examples.git
cd smart-contract-examples/ccip/cct/hardhat

Install and compile dependencies:

npm install
npm run compile

Set up encrypted environment variables:

# Set encryption password
npx env-enc set-pw

# Configure environment variables
npx env-enc set

Required environment variables for Ethereum Sepolia:

Fund your wallet:

Introduction

This tutorial covers the complete implementation of cross-chain tokens using the direct mint authority transfer approach within Path A from the CCIP Cross-Chain Token Integration Guide. When you complete this tutorial, you will have:

  • Ethereum Sepolia: ERC20 token with CCIP BurnMint pool
  • Solana Devnet: SPL token with CCIP BurnMint pool
  • Bidirectional Transfers: Working token transfers in both directions
  • Autonomous Operation: Complete self-service setup without manual assistance

What You Will Build

This tutorial provides a complete implementation of the direct mint authority transfer variant of Path A from the CCIP Cross-Chain Token Integration Guide. This approach is designed for development and testing environments where you transfer complete mint authority to the Pool Signer PDA for simplified setup.

Key Approach: You will transfer mint authority directly to the Pool Signer PDA rather than setting up a multisig configuration. This provides the simplest Path A implementation suitable for development environments.

In this tutorial, you will:

  • Deploy and configure ERC20 tokens on Ethereum Sepolia
  • Create SPL tokens with proper CCIP integration on Solana Devnet
  • Implement self-service CCIP administrator registration
  • Configure BurnMint token pools with direct mint authority transfer
  • Set up Address Lookup Tables for efficient cross-chain operations
  • Test bidirectional token transfers and monitor transactions

Technical Architecture

Cross-Chain Token Mechanism

The BurnMint mechanism ensures total supply consistency across chains by burning tokens on the source chain and minting equivalent tokens on the destination chain.

Key Infrastructure

The critical component for this tutorial is the Chainlink-deployed Pool Program that you will use to initialize your token pool:

  • Pool Program: 3BrkN1XcyeafuMZxomLZBUVdasEtpdMmpWfsEQmzN7vo
    • This is the standard BurnMint pool program deployed by Chainlink for self-serve mode
    • You will use this program address to initialize your own token pool
    • All other components (token addresses, PDAs, etc.) will be unique to your deployment

Phase 1: Ethereum Sepolia Token Setup

In this step, you will use Hardhat tasks to deploy an ERC20 token contract and a corresponding burn and mint token pool on Ethereum Sepolia. The tasks interact with the BurnMintERC20 contract for token deployment and the BurnMintTokenPool contract for pool creation.

Deploy ERC20 Token

Using the deployToken task, deploy a burnable and mintable ERC20 token on Ethereum Sepolia:

# Deploy BurnMint ERC20 token
npx hardhat deployToken \
 --name "BnM Cross-Chain" \
 --symbol BnMCC \
 --decimals 18 \
 --verifycontract true \
 --network sepolia

Deploy Token Pool

In this step, you will use the deployTokenPool task to deploy a CCIP BurnMint token pool for the token on Ethereum Sepolia. This task interacts with the BurnMintTokenPool contract and grants the necessary mint and burn privileges to the pool.

# Set token address from deployment
export ETH_TOKEN_ADDRESS=0x80c301E9ACAF23308B53760374dEc5FF388759Fc

# Deploy BurnMint pool

npx hardhat deployTokenPool \
 --tokenaddress $ETH_TOKEN_ADDRESS \
 --localtokendecimals 18 \
 --pooltype burnMint \
 --verifycontract true \
 --network sepolia

Configure CCIP Administration

Mint Tokens

In this step, you will use the mintTokens task to mint tokens on Ethereum Sepolia for your Externally Owned Account (EOA). Since you assigned mint and burn privileges to your EOA when deploying the tokens, you can now mint tokens for testing purposes. This ensures that you have enough tokens in your EOA to perform cross-chain transfers later.

# Mint initial token supply for testing
npx hardhat mintTokens \
  --tokenaddress $ETH_TOKEN_ADDRESS \
  --amount 1000000000000000000000 \
  --network sepolia

Claim Admin

In this step, you will use the claimAdmin task to register your EOA as the administrator for the deployed token on Ethereum Sepolia. This process involves calling the RegistryModuleOwnerCustom contract, which will fetch the CCIP admin of the token and set it up as the admin in the registry.

# Claim admin role
npx hardhat claimAdmin \
  --tokenaddress $ETH_TOKEN_ADDRESS \
  --network sepolia

Accept Admin Role

In this step, you will use the acceptAdminRole task to accept the admin role for the deployed token on Ethereum Sepolia. Once you have claimed the role, accepting the role finalizes your control over the token administration.

# Accept admin role
npx hardhat acceptAdminRole \
 --tokenaddress $ETH_TOKEN_ADDRESS \
 --network sepolia

Phase 2: Solana Devnet Token Setup

In this step, you will use the spl-token CLI tool to create an SPL token mint on Solana Devnet and then use Solana Starter Kit scripts to initialize the CCIP pool configuration and deploy the token pool program.

Create SPL Token

In this step, you will use the svm:token:create script to create an SPL token with Metaplex metadata support on Solana Devnet. This script leverages the TokenManager library to create a comprehensive token with metadata, initial supply, and proper configuration for CCIP integration.

yarn run v1.22.22
$ ts-node ./ccip-scripts/svm/token/create-token-metaplex.ts
Current working directory: /path/to/solana-starter-kit
Found .env file at: /path/to/solana-starter-kit/.env
Successfully loaded environment variables from /path/to/solana-starter-kit/.env

==== Environment Information ====
Solana Cluster: devnet
Keypair Path: ~/.config/solana/id.json
Wallet public key: EPUjBP3Xf76K1VKsDSc6GupBWE8uykNksCLJgXZn87CB

==== Wallet Balance Information ====
SOL Balance: 28179584451 lamports (28.179584451 SOL)

==== SPL Token Configuration ====
Name: AEM (default)
Symbol: CCIP-AEM (default)
Decimals: 9 (default)
URI: https://cyan-pleasant-anteater-613.mypinata.cloud/ipfs/bafkreieirlwjqbtzniqsgcjebzexlcspcmvd4woh3ajvf2p4fuivkenw6i (default)
Initial Supply: 1000000000000 (default)
Seller Fee Basis Points: 0 (default)

โš ๏ธ Using default token name/symbol. Consider providing your own with --name and --symbol for production tokens.

โš ๏ธ Using default metadata URI. Consider providing your own with --uri for production tokens.

==== Creating SPL Token ====
Starting spl-token creation with metadata {
name: 'AEM',
symbol: 'CCIP-AEM',
decimals: 9,
uri: 'https://cyan-pleasant-anteater-613.mypinata.cloud/ipfs/bafkreieirlwjqbtzniqsgcjebzexlcspcmvd4woh3ajvf2p4fuivkenw6i',
initialSupply: '1000000000000',
sellerFeeBasisPoints: 0,
tokenProgram: 'spl-token'
}

spl-token token created successfully {
mint: 'EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo',
signature: '5DSohYFd6iLtwBPKyfawz4Vz9hgSQzW9XF4NbMFA7HeMiXLPwGnkdVfNnFnmmp1B4p3iptnjMWHK4D96u2oJBJcR'
}

Starting token mint operation {
mint: 'EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo',
amount: '1000000000000',
recipient: 'EPUjBP3Xf76K1VKsDSc6GupBWE8uykNksCLJgXZn87CB'
}

ATA created successfully {
tokenAccount: 'BS4bnBXP6TNEHTa3pnFNz1i8yFYrUkyfNCdBdoxzXbYS',
signature: '5xFA7LNh8Th4GYwEVbVJzPixw9EHrWis3oE1tCjVZ66mx7Xgmnqptgw3EumVi4hQ3GfitKDGWA5j82ssMcYQf3dL'
}

Tokens minted successfully {
signature: 'ePatew86PPtCR8gMpqnFXXhYfnLNH7R8ZMwXA8heaTncFdEuR9GH5HFLRvidqgmaREPGaJEZjtQ6Zo9NX1Vg4k8',
amount: '1000000000000',
tokenAccount: 'BS4bnBXP6TNEHTa3pnFNz1i8yFYrUkyfNCdBdoxzXbYS',
newBalance: '1000000000000'
}

Initial supply minted {
tokenAccount: 'BS4bnBXP6TNEHTa3pnFNz1i8yFYrUkyfNCdBdoxzXbYS',
amount: '1000000000000'
}

==== SPL Token Created Successfully ====
Mint Address: EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo
Transaction Signature: 5DSohYFd6iLtwBPKyfawz4Vz9hgSQzW9XF4NbMFA7HeMiXLPwGnkdVfNnFnmmp1B4p3iptnjMWHK4D96u2oJBJcR
Token Account: BS4bnBXP6TNEHTa3pnFNz1i8yFYrUkyfNCdBdoxzXbYS

==== Explorer URLs ====
Mint: https://explorer.solana.com/address/EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo?cluster=devnet
Transaction: https://explorer.solana.com/tx/5DSohYFd6iLtwBPKyfawz4Vz9hgSQzW9XF4NbMFA7HeMiXLPwGnkdVfNnFnmmp1B4p3iptnjMWHK4D96u2oJBJcR?cluster=devnet
Token Account: https://explorer.solana.com/address/BS4bnBXP6TNEHTa3pnFNz1i8yFYrUkyfNCdBdoxzXbYS?cluster=devnet

๐ŸŽ‰ SPL Token creation completed successfully!

๐Ÿ’ก You can now use this mint address for token operations:
Mint Address: EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo

โœจ Done in 45.84s.

# Set your token mint address (replace with your actual mint address)
export TOKEN_MINT=EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo

Initialize CCIP Token Pool

Before initializing your token pool, set the Pool Program address. This is the Chainlink self-service BurnMint pool program that supports autonomous token pool creation:

# Set pool program (Chainlink self-service BurnMint pool program)
export POOL_PROGRAM=3BrkN1XcyeafuMZxomLZBUVdasEtpdMmpWfsEQmzN7vo
yarn run v1.22.22
$ ts-node ./ccip-scripts/svm/pool/initialize-pool.ts --token-mint EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo --burn-mint-pool-program 3BrkN1XcyeafuMZxomLZBUVdasEtpdMmpWfsEQmzN7vo
Current working directory: /path/to/solana-starter-kit
Found .env file at: /path/to/solana-starter-kit/.env
Successfully loaded environment variables from /path/to/solana-starter-kit/.env

CCIP Token Pool Initialization
Loading keypair from ~/.config/solana/id.json...
Wallet public key: EPUjBP3Xf76K1VKsDSc6GupBWE8uykNksCLJgXZn87CB
Wallet balance: 28.160947971 SOL
Token Mint: EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo
Burn-Mint Pool Program: 3BrkN1XcyeafuMZxomLZBUVdasEtpdMmpWfsEQmzN7vo
Router Program: Ccip842gzYHhvdDkSyi2YVCoAWPbYJoApMFzSxQroE9C
RMN Remote Program: RmnXLft1mSEwDgMKu2okYuHkiazxntFFcZFrrcXxYg7

Created token pool client for program: 3BrkN1XcyeafuMZxomLZBUVdasEtpdMmpWfsEQmzN7vo, token: EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo
Checking if pool already exists...
Initializing token pool...
Initializing burn-mint pool for mint: EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo
Initializing burn-mint pool for mint: EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo
๐Ÿ“ Pool State PDA: CB9NEes1KzH3WmsnXA1bH3Qyu3gjaKJMfyGNVgtVZw8e

Burn-mint pool initialized: 5MXH5GBjBSaKNYyrucECKEKJzCh8TZRpdSspWyVtZBAtKKKdVjdwYL8aPtNpMgyr7DjTPKgpWdNBrT5fYPJK4uVe

๐ŸŽฏ Pool Initialization Summary:
Token Mint: EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo
Pool State PDA: CB9NEes1KzH3WmsnXA1bH3Qyu3gjaKJMfyGNVgtVZw8e
Pool Signer PDA: F33GBLfrk1EkkdkXrrnMEh1m3HMirb9USZvoCi4m41n6
Program ID: 3BrkN1XcyeafuMZxomLZBUVdasEtpdMmpWfsEQmzN7vo
Transaction: 5MXH5GBjBSaKNYyrucECKEKJzCh8TZRpdSspWyVtZBAtKKKdVjdwYL8aPtNpMgyr7DjTPKgpWdNBrT5fYPJK4uVe

Pool initialized successfully! ๐ŸŽ‰
Transaction signature: 5MXH5GBjBSaKNYyrucECKEKJzCh8TZRpdSspWyVtZBAtKKKdVjdwYL8aPtNpMgyr7DjTPKgpWdNBrT5fYPJK4uVe
Solana Explorer: https://explorer.solana.com/tx/5MXH5GBjBSaKNYyrucECKEKJzCh8TZRpdSspWyVtZBAtKKKdVjdwYL8aPtNpMgyr7DjTPKgpWdNBrT5fYPJK4uVe?cluster=devnet

โœ… Pool initialization verified successfully!
โœ… State PDA confirmed active: CB9NEes1KzH3WmsnXA1bH3Qyu3gjaKJMfyGNVgtVZw8e

๐ŸŽฏ Pool Creation Summary:
Token Mint: EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo
State PDA: CB9NEes1KzH3WmsnXA1bH3Qyu3gjaKJMfyGNVgtVZw8e
Owner: EPUjBP3Xf76K1VKsDSc6GupBWE8uykNksCLJgXZn87CB
Program: 3BrkN1XcyeafuMZxomLZBUVdasEtpdMmpWfsEQmzN7vo

๐Ÿ’ก View details: yarn svm:pool:get-info --token-mint EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo --burn-mint-pool-program 3BrkN1XcyeafuMZxomLZBUVdasEtpdMmpWfsEQmzN7vo

โœจ Done in 20.11s.

Verify Pool Creation

In this step, you will use the svm:pool:get-info script to verify that your token pool was initialized correctly. This command queries the on-chain state and displays comprehensive information about your pool configuration, including the Pool Signer PDA and current ownership.

# Verify pool creation
yarn svm:pool:get-info \
  --token-mint $TOKEN_MINT \
  --burn-mint-pool-program $POOL_PROGRAM

Create Pool Token Account

In this step, you will use the svm:pool:create-token-account script to create an Associated Token Account (ATA) for the Pool Signer PDA. This ATA is required for the pool to hold and manage tokens during cross-chain transfer operations.

# Create ATA for Pool Signer PDA
yarn svm:pool:create-token-account \
  --token-mint $TOKEN_MINT \
  --burn-mint-pool-program $POOL_PROGRAM

Administrator Registration

In this step, you will use the svm:admin:propose-administrator and svm:admin:accept-admin-role scripts to register yourself as the CCIP administrator for the Solana token. This process establishes your control over the token's CCIP configuration on Solana.

# Propose yourself as CCIP administrator
yarn svm:admin:propose-administrator \
  --token-mint $TOKEN_MINT
# Accept the administrator role
yarn svm:admin:accept-admin-role \
  --token-mint $TOKEN_MINT

Phase 3: Cross-Chain Configuration

In this step, you will configure bidirectional connectivity between the token pools on both chains. Each chain uses different tools: Solana uses Starter Kit scripts to configure its pool to recognize Ethereum tokens and pools, while Ethereum uses Hardhat tasks to configure its pool to recognize Solana tokens and pools.

Configure Solana โ†’ Ethereum

First, set the environment variables needed for this terminal session:

# Set Ethereum token and pool addresses from Phase 1
export ETH_TOKEN_ADDRESS=0x80c301E9ACAF23308B53760374dEc5FF388759Fc
export ETH_POOL_ADDRESS=0xAbd67F52a6819e6018E27207285960830ecdC765

Initialize Chain Remote Configuration

In this step, you will use the svm:pool:init-chain-remote-config script to initialize the configuration for Ethereum Sepolia as a remote chain. This creates the basic chain configuration with token information but without pool addresses (those will be added in the next step).

# Initialize remote chain configuration for Ethereum Sepolia
yarn svm:pool:init-chain-remote-config \
  --token-mint $TOKEN_MINT \
  --burn-mint-pool-program $POOL_PROGRAM \
  --remote-chain ethereum-sepolia \
  --token-address $ETH_TOKEN_ADDRESS \
  --decimals 9

Add Ethereum Pool Address

In this step, you will use the svm:pool:edit-chain-remote-config script to update the previously created chain configuration with the Ethereum pool address. This completes the configuration by telling the Solana pool which Ethereum pool it should interact with for cross-chain transfers.

# Add Ethereum pool address to the configuration
yarn svm:pool:edit-chain-remote-config \
  --token-mint $TOKEN_MINT \
  --burn-mint-pool-program $POOL_PROGRAM \
  --remote-chain ethereum-sepolia \
  --pool-addresses $ETH_POOL_ADDRESS \
  --token-address $ETH_TOKEN_ADDRESS \
  --decimals 9

Verify Configuration

In this step, you will use the svm:pool:get-chain-config script to verify that the Solana pool configuration for Ethereum Sepolia has been set up correctly with both the token address and pool address.

# Verify the chain configuration is complete
yarn svm:pool:get-chain-config \
  --token-mint $TOKEN_MINT \
  --burn-mint-pool-program $POOL_PROGRAM \
  --remote-chain ethereum-sepolia

Configure Ethereum โ†’ Solana

First, set the environment variables needed for this terminal session:

# Set variables from previous phases (these were created in different terminals)
export ETH_TOKEN_ADDRESS=0x80c301E9ACAF23308B53760374dEc5FF388759Fc
export ETH_POOL_ADDRESS=0xAbd67F52a6819e6018E27207285960830ecdC765
export TOKEN_MINT=EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo
export POOL_PROGRAM=3BrkN1XcyeafuMZxomLZBUVdasEtpdMmpWfsEQmzN7vo

Calculate Solana Pool Config PDA

In this step, you will use the calculateCCIPTokenPoolPDA.ts script to calculate the Pool Config Program Derived Address (PDA) for your Solana token pool. This PDA represents the configuration account of your Solana token pool and is what the Ethereum pool needs to know about to communicate with your Solana pool during cross-chain transfers.

# Calculate the Pool Config PDA for Ethereum cross-chain configuration
npx tsx scripts/calculateCCIPTokenPoolPDA.ts \
  $TOKEN_MINT \
  $POOL_PROGRAM

Export Pool Config PDA

Export the calculated Pool Config PDA to use in the next command.

# Export the Pool Config PDA (use the address from the previous step output)
export SOLANA_POOL_CONFIG_PDA=CB9NEes1KzH3WmsnXA1bH3Qyu3gjaKJMfyGNVgtVZw8e

Apply Chain Updates

In this step, you will use the applyChainUpdates Hardhat task to configure the Ethereum pool to recognize the Solana token and pool. This tells the Ethereum pool which Solana pool (via its Pool Config PDA) and token it should interact with for cross-chain transfers.

# Configure Ethereum pool to recognize Solana chain
npx hardhat applyChainUpdates \
  --pooladdress $ETH_POOL_ADDRESS \
  --remotechain solanaDevnet \
  --remotepooladdresses $SOLANA_POOL_CONFIG_PDA \
  --remotetokenaddress $TOKEN_MINT \
  --network sepolia

Phase 4: Pool Registration

In this step, you will register the token pools with their respective tokens on both chains. This is the final configuration step that enables cross-chain operations by linking tokens to their pools in the CCIP registry.

Pool registration works differently on each platform:

  • Ethereum: Links the token directly to its pool contract address
  • Solana: Links the token to an Address Lookup Table containing all necessary pool accounts

Ethereum Sepolia Pool Registration

In this step, you will use the setPool Hardhat task to register the BurnMint token pool with the token in Ethereum's TokenAdminRegistry contract. This function sets the pool contract address for the token, enabling it for CCIP cross-chain transfers. Only the token administrator can call this function.

# Set pool address from deployment
export ETH_POOL_ADDRESS=0xAbd67F52a6819e6018E27207285960830ecdC765

# Register token pool with TokenAdminRegistry contract

npx hardhat setPool \
 --tokenaddress $ETH_TOKEN_ADDRESS \
 --pooladdress $ETH_POOL_ADDRESS \
 --network sepolia

Solana Devnet Pool Registration

Solana pool registration is a multi-step process: create an Address Lookup Table (ALT), transfer mint authority, and register the pool. The ALT contains all necessary accounts for CCIP operations, and the set_pool instruction links this ALT to the token in the Router's TokenAdminRegistry.

Create Address Lookup Table

In this step, you will create an Address Lookup Table containing the 10 essential accounts needed for CCIP token pool operations. The ALT optimizes transaction size and costs by grouping frequently used accounts.

# Create ALT with required CCIP accounts
yarn svm:admin:create-alt \
  --token-mint $TOKEN_MINT \
  --pool-program $POOL_PROGRAM
# Export ALT address for pool registration
export ALT_ADDRESS=9ta5pUBtSzcYYWHXdraxfdxqotJxRVW7bsRQ4BdJv6DS

Get Pool Signer PDA

In this step, you will retrieve the Pool Signer Program Derived Address (PDA) for your token. This PDA will serve as the mint authority for the token pool, enabling CCIP to autonomously mint and burn tokens during cross-chain transfers.

# Get the Pool Signer PDA address and understand its derivation
yarn svm:pool:get-pool-signer \
  --token-mint $TOKEN_MINT \
  --burn-mint-pool-program $POOL_PROGRAM

Export the Pool Signer PDA address for use in the next step:

# Export the Pool Signer PDA address for mint authority transfer
export POOL_SIGNER_PDA=F33GBLfrk1EkkdkXrrnMEh1m3HMirb9USZvoCi4m41n6

Transfer Mint Authority

In this step, you will use the spl-token CLI to transfer mint authority from your wallet to the Pool Signer PDA. This enables the CCIP pool to autonomously mint and burn tokens during cross-chain transfers.

# Transfer mint authority to Pool Signer PDA
spl-token authorize $TOKEN_MINT mint $POOL_SIGNER_PDA

# Verify the authority transfer

spl-token display $TOKEN_MINT

Register Pool with Router

In this step, you will use the svm:admin:set-pool script to register the token pool with Solana's Router TokenAdminRegistry. This instruction sets the Address Lookup Table as the pool definition for the token, enabling it for CCIP cross-chain transfers. The writable_indices parameter specifies which accounts in the ALT need write access during transactions.

# Register pool using ALT created earlier
yarn svm:admin:set-pool \
 --token-mint $TOKEN_MINT \
 --lookup-table $ALT_ADDRESS \
 --writable-indices 3,4,7

Phase 5: Testing Cross-Chain Transfers

This phase demonstrates bidirectional token transfers using the burn-mint mechanism. You will test transfers in both directions to verify complete cross-chain functionality.

Transfer Direction 1: Solana โ†’ Ethereum

Prepare for Testing

Your Associated Token Account (ATA) was already created during token creation in Phase 1. Now verify your token balance and prepare for cross-chain transfers:

# Check your current token balance (should show 1000 from Phase 1)
spl-token balance $TOKEN_MINT

# Delegate tokens for CCIP transfers

yarn svm:token:delegate --token-mint $TOKEN_MINT

# Verify the delegation was successful

yarn svm:token:check --token-mint $TOKEN_MINT

Execute Transfer

yarn run v1.22.22
$ ts-node ./ccip-scripts/svm/router/1_token-transfer.ts --token-mint EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo
Current working directory: /Users/aelmanaa/Documents/Blockchain/chainlink/solana-starter-kit
Found .env file at: /Users/aelmanaa/Documents/Blockchain/chainlink/solana-starter-kit/.env
Successfully loaded environment variables from /Users/aelmanaa/Documents/Blockchain/chainlink/solana-starter-kit/.env
[2025-07-23T15:03:42.131Z]
==== Environment Information ====
[2025-07-23T15:03:42.137Z] Solana Cluster: devnet
[2025-07-23T15:03:42.138Z] Keypair Path: /Users/aelmanaa/.config/solana/id.json
[2025-07-23T15:03:42.138Z] Log Level: INFO
[2025-07-23T15:03:42.138Z] Skip Preflight: No
[2025-07-23T15:03:42.224Z] Wallet public key: EPUjBP3Xf76K1VKsDSc6GupBWE8uykNksCLJgXZn87CB
[2025-07-23T15:03:42.226Z]
==== Wallet Balance Information ====
[2025-07-23T15:03:43.888Z] SOL Balance: 28.005844406 SOL
[2025-07-23T15:03:43.888Z] Lamports Balance: 28005844406 lamports
[2025-07-23T15:03:43.889Z]
==== CCIP Router Information ====
[2025-07-23T15:03:43.889Z] CCIP Router Program ID: Ccip842gzYHhvdDkSyi2YVCoAWPbYJoApMFzSxQroE9C
[2025-07-23T15:03:43.889Z] Fee Quoter Program ID: FeeQPGkKDeRV1MgoYfMH6L8o3KeuYjwUZrgn4LRKfjHi
[2025-07-23T15:03:43.889Z] RMN Remote Program ID: RmnXLft1mSEwDgMKu2okYuHkiazxntFFcZFrrcXxYg7
[2025-07-23T15:03:43.890Z]
==== CCIP Send Configuration ====
[2025-07-23T15:03:43.890Z] Destination Chain Selector: 16015286601757825753
[2025-07-23T15:03:43.890Z] Receiver Address: 0x9d087fC03ae39b088326b67fA3C788236645b717
[2025-07-23T15:03:43.890Z]
==== Token Transfer Details ====
[2025-07-23T15:03:43.890Z] Getting mint account info for EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo to determine token program ID...
[2025-07-23T15:03:44.160Z] Detected Standard Token Program: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
[2025-07-23T15:03:44.161Z] Fetching token decimals for EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo
[2025-07-23T15:03:44.434Z] Token EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo has 9 decimals
[2025-07-23T15:03:44.524Z] Token 1: EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo
[2025-07-23T15:03:44.524Z] Amount 1: 10000000 raw units (0,01 tokens with 9 decimals)
[2025-07-23T15:03:44.524Z] Fee Token: native
[2025-07-23T15:03:44.524Z]
==== Fee Token Configuration ====
[2025-07-23T15:03:44.524Z] Using native SOL as fee token
[2025-07-23T15:03:44.524Z] No gasLimit provided in extraArgs, using default value: 0
[2025-07-23T15:03:44.529Z]
==== CCIP Message Request Created ====
[2025-07-23T15:03:44.530Z]
==== Compute Budget Configuration ====
[2025-07-23T15:03:44.531Z] Added compute budget instruction with limit: 1400000 units
[2025-07-23T15:03:44.531Z]
==== Fee Calculation ====
[2025-07-23T15:03:44.531Z] Calculating fee for this transaction...
[2025-07-23T15:03:44.535Z] Calculating fee for destination chain 16015286601757825753
[2025-07-23T15:03:45.104Z] Fee calculation complete: 9475876 tokens
[2025-07-23T15:03:45.104Z] Estimated fee: 0.009475876 SOL
[2025-07-23T15:03:45.104Z] Fee in Juels: 99197357000000000
[2025-07-23T15:03:45.104Z]
==== Balance Validation ====
[2025-07-23T15:03:45.367Z] SOL Balance: 28.005844406 SOL
[2025-07-23T15:03:45.368Z]
==== Token Balance Validation ====
[2025-07-23T15:03:45.368Z] Getting mint account info for EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo to determine token program ID...
[2025-07-23T15:03:45.630Z] Detected Standard Token Program: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
[2025-07-23T15:03:45.631Z] Fetching token decimals for EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo
[2025-07-23T15:03:45.893Z] Token EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo has 9 decimals
[2025-07-23T15:03:45.893Z] Validating token EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo: 0,01 tokens (10000000 raw units)
[2025-07-23T15:03:46.160Z] โœ… Balance validation passed for token: EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo
[2025-07-23T15:03:46.160Z] โœ… All balance validations passed. Proceeding with transaction.
[2025-07-23T15:03:46.160Z]
==== Sending CCIP Message ====
[2025-07-23T15:03:46.160Z] โณ This may take a minute...
[2025-07-23T15:03:46.160Z] Transaction options: default settings
[2025-07-23T15:03:46.161Z] Sending CCIP message to destination chain 16015286601757825753
[2025-07-23T15:03:46.161Z] Building accounts for CCIP send to chain 16015286601757825753
[2025-07-23T15:03:46.165Z] Getting mint account info for EL4xtGMgYoYtM4FcFnehiQJZFM2AsfqdFikgZK2y9GCo to determine token program ID...
[2025-07-23T15:03:46.428Z] Detected Standard Token Program: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
[2025-07-23T15:04:00.481Z] CCIP message sent successfully: 5KVJnX4KN7GS76F67wWpX5fZ8sQkWWQM6fvWnPFirKxLEecKjnj4EqB5zqnQEQePTwTGNVEsegX6VdJC7WETDU2V
[2025-07-23T15:04:00.482Z] Parsing CCIP message sent event for transaction: 5KVJnX4KN7GS76F67wWpX5fZ8sQkWWQM6fvWnPFirKxLEecKjnj4EqB5zqnQEQePTwTGNVEsegX6VdJC7WETDU2V
[2025-07-23T15:04:00.982Z] Successfully extracted messageId: 0x403e76cdf2a75077ea6904c1eedb684f4c5640c642fc1f29eab041442084aafa
[2025-07-23T15:04:00.982Z]
==== CCIP Message Sent Successfully ====
[2025-07-23T15:04:00.983Z] Transaction signature: 5KVJnX4KN7GS76F67wWpX5fZ8sQkWWQM6fvWnPFirKxLEecKjnj4EqB5zqnQEQePTwTGNVEsegX6VdJC7WETDU2V
[2025-07-23T15:04:00.983Z] Message ID: 0x403e76cdf2a75077ea6904c1eedb684f4c5640c642fc1f29eab041442084aafa
[2025-07-23T15:04:00.983Z] ๐Ÿ‘‰ CCIP Explorer: https://ccip.chain.link/msg/0x403e76cdf2a75077ea6904c1eedb684f4c5640c642fc1f29eab041442084aafa
[2025-07-23T15:04:00.983Z]
View transaction on explorer:
[2025-07-23T15:04:00.983Z] https://explorer.solana.com/tx/5KVJnX4KN7GS76F67wWpX5fZ8sQkWWQM6fvWnPFirKxLEecKjnj4EqB5zqnQEQePTwTGNVEsegX6VdJC7WETDU2V?cluster=devnet
โœจ  Done in 25.25s.

Monitor and Verify Transaction

Upon successful execution, the system generates critical tracking identifiers for transaction monitoring and verification.

Transaction Identifiers:

  • Transaction Signature: 5KVJnX4KN7GS76F67wWpX5fZ8sQkWWQM6fvWnPFirKxLEecKjnj4EqB5zqnQEQePTwTGNVEsegX6VdJC7WETDU2V
  • CCIP Message ID: 0x403e76cdf2a75077ea6904c1eedb684f4c5640c642fc1f29eab041442084aafa

CCIP Explorer (Primary monitoring interface):

https://ccip.chain.link/msg/0x403e76cdf2a75077ea6904c1eedb684f4c5640c642fc1f29eab041442084aafa

The CCIP Explorer provides comprehensive transaction visibility:

  • Source chain (Solana) transaction confirmation
  • CCIP message processing and routing
  • Destination chain (Ethereum) message delivery
  • Token minting completion on Ethereum

Solana Explorer (Source chain verification):

https://explorer.solana.com/tx/5KVJnX4KN7GS76F67wWpX5fZ8sQkWWQM6fvWnPFirKxLEecKjnj4EqB5zqnQEQePTwTGNVEsegX6VdJC7WETDU2V?cluster=devnet

Transfer Direction 2: Ethereum โ†’ Solana

Execute Transfer

yarn run v1.22.22
$ ts-node ./ccip-scripts/evm/router/1_token-transfer.ts --token 0x80c301E9ACAF23308B53760374dEc5FF388759Fc
Current working directory: /Users/aelmanaa/Documents/Blockchain/chainlink/solana-starter-kit
Found .env file at: /Users/aelmanaa/Documents/Blockchain/chainlink/solana-starter-kit/.env
Successfully loaded environment variables from /Users/aelmanaa/Documents/Blockchain/chainlink/solana-starter-kit/.env
chainId ethereum-sepolia
[token-transfer] [INFO]
==== Environment Information ====
chainId ethereum-sepolia
[token-transfer] [INFO] Router Address: 0x0BF3dE8c5D3e8A2B34D2BEeB17ABfCeBaf363A59
chainId ethereum-sepolia
[ccip-messenger] [INFO] Creating client for chain: Ethereum Sepolia (ethereum-sepolia)
[token-transfer] [INFO] Wallet Address: 0x9d087fC03ae39b088326b67fA3C788236645b717
[token-transfer] [INFO] Native Balance: 592.753233854853410645 ETH
[token-transfer] [INFO] Token: CCIP-BnM (0xFd57b4ddBf88a4e07fF4e34C487b99af2Fe82a05)
[token-transfer] [INFO] Token Balance: 9.6309999999999987 CCIP-BnM
[token-transfer] [INFO] Transfer Amount: 0.01 CCIP-BnM
[token-transfer] [INFO] Creating CCIP message request
[token-transfer] [INFO] Using fee token: 0x779877A7B0D9E8603169DdbD7836e478b4624789
[token-transfer] [INFO]
==== Transfer Summary ====
[token-transfer] [INFO] Source Chain: Ethereum Sepolia
[token-transfer] [INFO] Destination Chain: Solana Devnet (16423721717087811551)
[token-transfer] [INFO] Sender: 0x9d087fC03ae39b088326b67fA3C788236645b717
[token-transfer] [INFO] Receiver: 11111111111111111111111111111111
[token-transfer] [INFO] Token Receiver: EPUjBP3Xf76K1VKsDSc6GupBWE8uykNksCLJgXZn87CB
[token-transfer] [INFO] Fee Token: 0x779877A7B0D9E8603169DdbD7836e478b4624789
[token-transfer] [INFO]
Token Transfers:
[token-transfer] [INFO]   1. 0.01 CCIP-BnM (0xFd57b4ddBf88a4e07fF4e34C487b99af2Fe82a05)
[token-transfer] [INFO]
Extra Args: Solana-specific, 228 bytes
[token-transfer] [INFO]
Sending CCIP message...
[ccip-messenger] [INFO] Estimated fee: 17659817675038194
[ccip-messenger] [INFO] Approving 0.021191781210045832 LINK for CCIP Router
[ccip-messenger] [INFO] This token is being used as the fee token with a 20% buffer included
[ccip-messenger] [INFO] Approving 0.021191781210045832 tokens for 0x0BF3dE8c5D3e8A2B34D2BEeB17ABfCeBaf363A59
[ccip-messenger] [INFO] LINK approved for CCIP Router
[ccip-messenger] [INFO] โœ… Verified on-chain allowance for LINK: 0.021191781210045832 (required: 0.021191781210045832)
[ccip-messenger] [INFO] Approving 0.01 CCIP-BnM for CCIP Router
[ccip-messenger] [INFO] Approving 0.01 tokens for 0x0BF3dE8c5D3e8A2B34D2BEeB17ABfCeBaf363A59
[ccip-messenger] [INFO] CCIP-BnM approved for CCIP Router
[ccip-messenger] [INFO] โœ… Verified on-chain allowance for CCIP-BnM: 0.01 (required: 0.01)
[ccip-messenger] [INFO] Sending CCIP message...
[ccip-messenger] [INFO] Sending CCIP message...
[ccip-messenger] [INFO] Transaction sent: 0x7e03c2a19faaa893b727786c217568df3dab94246a40d8d6ba1f840669069e1b
[ccip-messenger] [INFO] Transaction sent: 0x7e03c2a19faaa893b727786c217568df3dab94246a40d8d6ba1f840669069e1b
[ccip-messenger] [INFO] Message ID: 0x330755657bb1a113f0a294f96131bb333ab2f3113cbb6f414a78615e70210910
[token-transfer] [INFO]
==== Transfer Results ====
[token-transfer] [INFO] Transaction Hash: 0x7e03c2a19faaa893b727786c217568df3dab94246a40d8d6ba1f840669069e1b
[token-transfer] [INFO] Transaction URL: https://sepolia.etherscan.io/tx/0x7e03c2a19faaa893b727786c217568df3dab94246a40d8d6ba1f840669069e1b
[token-transfer] [INFO] Message ID: 0x330755657bb1a113f0a294f96131bb333ab2f3113cbb6f414a78615e70210910
[token-transfer] [INFO] ๐Ÿ‘‰ CCIP Explorer: https://ccip.chain.link/#/side-drawer/msg/0x403e76cdf2a75077ea6904c1eedb684f4c5640c642fc1f29eab041442084aafa
[token-transfer] [INFO] Destination Chain Selector: 16423721717087811551
[token-transfer] [INFO] Sequence Number: 303
[token-transfer] [INFO]
Message tracking for Solana destinations:
[token-transfer] [INFO] Please check the CCIP Explorer link to monitor your message status.
[token-transfer] [INFO]
โœ… Transaction completed on the source chain
โœจ  Done in 118.40s.

Monitor and Verify Transaction

Upon successful execution, the system generates distinct tracking identifiers for comprehensive monitoring across both blockchain networks.

Transaction Identifiers:

  • Ethereum Transaction Hash: 0x7e03c2a19faaa893b727786c217568df3dab94246a40d8d6ba1f840669069e1b
  • CCIP Message ID: 0x330755657bb1a113f0a294f96131bb333ab2f3113cbb6f414a78615e70210910

CCIP Explorer (Primary monitoring interface):

https://ccip.chain.link/#/side-drawer/msg/0x403e76cdf2a75077ea6904c1eedb684f4c5640c642fc1f29eab041442084aafa

The CCIP Explorer provides comprehensive transaction visibility:

  • Source chain (Ethereum) transaction confirmation
  • CCIP message processing and routing
  • Destination chain (Solana) message delivery
  • Token minting completion on Solana network

Ethereum Sepolia Explorer (Source chain verification):

https://sepolia.etherscan.io/tx/0x7e03c2a19faaa893b727786c217568df3dab94246a40d8d6ba1f840669069e1b

Get the latest Chainlink content straight to your inbox.