Mint from Destination 2 - Base Sepolia

For this part of the workshop we will be minting on a new destination. In the Recorded Workshop, the destination Chain was Polygon Mumbai, However, Mumbai has been deprecated so we will be changing it

We will demonstrate how you can send messages & mint tokens across multiple chains using Chainlink CCIP

We will demonstrate how you can send messages & mint tokens across multiple chains using Chainlink CCIP

Workshop Source Code

We will be using Base Sepolia instead, since Polygon Mumbai was deprecated in April 2024.

A screengrab from the Link Token Contracts Documentation for Base Sepolia Testnet

Follow this link to switch your Metamask wallet to the Base Sepolia network - Make sure the Chain ID is 84532

Base Sepolia Network

Use the Faucet to receive some LINK and ETH on the Base Sepolia Network

You can acquire Base Sepolia Testnet Link and Ethereum here\
This link directs you to the exact spot from that screengrab above

Make sure you add the LINK token to your wallet by importing it as per the above links. You can either do that by copying the Link token address and manually importing it, or by clicking the button provided.


Now that we have our important prerequisites taken care of, lets dive into the code. Make a new file in Remix, CrossSourceMinterBaseSepolia.sol and copy the following in there.

Copy this code into your new CrossSourceMinterBase.sol File

Go to the Deployment tab and include your CrossDestinationMinter.sol's address as the parameter (this is the same contract we deployed on Ethereum Sepolia)

Example of the Deployment Tab

Now send the newly created CrossSourceMinterBaseSepolia contract 5 LINK so it can pay for operations.

Example of Link transfer

Once LINK is in the contract you should confirm that it is there by clicking the linkBalance button and pass the CrossSourceMinterBaseSepolia address as the input parameter.

Example of Checking the Link Balance

Example Of mintOnEthSepolia

Confirm the transaction

This transaction may take a little bit of time

Have patience, this transaction may take some time as it works towards finality on the Source & Destination Chain.

If done correctly the outcome should look something like this

CONGRATULATIONS 🥳

Celebrate by tweeting about #chainlink and share your screenshots!

Last updated