Send Message CCIP
About The Project
This code provides a practical example of how to use the Chainlink functions implemented with the Cryptum-sdk
In this project, we utilized the following functionalities:
Chainlink CCIP
This project was developed based on the AVALANCHE and ETHEREUM Sepolia network on TESTNET.
It's necessary to have ETH and LINK in your wallet for it to function correctly.
We will send data from the Ethereum network to the Avalanche network.
About Cryptum
The Cryptum infrastructure allows clients to integrate and interact with the most diverse blockchain protocols - you don't need to start from scratch! We already laid the foundation for you to build upon. Learn more about Cryptum here.
About Chainlink
Chainlink is the industry-standard Web3 services platform that has enabled trillions of dollars in transaction volume across DeFi, insurance, gaming, NFTs, and other major industries. As the leading decentralized oracle network, Chainlink enables developers to build feature-rich Web3 applications with seamless access to real-world data and off-chain computation across any blockchain and provides global enterprises with a universal gateway to all blockchains.
Read more about the Chainlink integration.
Implementation
The following steps highlight the core aspect of our project, which involves using Chainlink CCIP with the Cryptum SDK to send data between the Ethereum Sepolia network and the Avalanche Fuji network.
Step 1
Obtain your credentials and create a wallet. Get faucets for Ethereum and Avalanche Fuji.
You can obtain faucets through the link: https://docs.chain.link/ccip/test-tokens
Step 2
Deploy your contract on the source network.
Step 3
Add funds to the created contract.
In this example, we will add ETH and LINK. We will transfer the balance from our wallet to the contract.
Step 4
Repeat steps 2 and 3 on the destination network.
Step 5
On the destination contract, approve the origin contract address to receive messages sent by it.
Step 6
Send a data message to Avalanche Fuji.
You can track the request status at: https://ccip.chain.link or by using the function: sdk.chainlink.getStatusCCIP
See more examples for sending tokens and tokens with data. Read More
Step 6
Run destination.js and wait for the new message:
You can also check the last message sent in the source contract.
Last updated