This script sets up a cross-chain transfer with the following specs:
- Source chain: Ethereum Sepolia
- Destination chain: Arbitrum Sepolia
This script uses ethers.js (v5.7).
CCTP contract addresses for mainnet and testnet can be found here.
- Clone this repo (star it if you like it!)
- Create a
.env
file in the root of the project - Use the
.env.example
to populate your.env
file - For
TRANSFER_AMOUNT
, fill in10000000
in 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 index
and your cross-chain transfer will begin! ๐โโ๏ธ
Questions? Join our Discord!