This script (index.js) sets up a cross-chain transfer with the following specs:
- Source chain: Ethereum Sepolia
- Destination chain: Arbitrum Sepolia
CCTP contract addresses for mainnet and testnet can be found here.
- Clone this repo (star it if you like it!)
- Create a
.envfile in the root of the project - Use the
.env.exampleto populate your.envfile - For
TRANSFER_AMOUNT, fill in10000000in order to transfer 10 USDC - Remember to fund your wallets with ETH on both the source AND destination chain for this script to work!
- Once everything is set up, run
node indexand your cross-chain transfer will begin! 🏄♂️
Questions? Join our Discord!