Fund our smart contract with LINK
Let’s now send LINK to our TransferUSDCBasic.sol contract so that our contract can pay CCIP's usage fees.
TransferUSDCBasic.sol
Go to MetaMask, click the “Tokens” tab
Then click on the LINK token
Click the "Send" button:
Paste in the deployed address of your TransferUSDCBasic.sol:
TransferUSDCBasic.sol:
Enter 3 LINK
3
Click the "Next" button
Click the "Confirm" button:
Check the LINK balance in our TransferUSDCBasic.sol contract. Go back to Remix and your TransferUSDCBasic.sol contract.
Copy your deployed contract's address
Paste the address into the balancesOf function and click the balancesOf button
balancesOf
Underneath you will see linkBalance: 3000000000000000000 which is 3 LINK
linkBalance: 3000000000000000000
Now you are ready to do a Cross-Chain token transfer using CCIP!
Last updated 1 year ago