Send a supported erc-20 token from source chain to the destination chain.
Make sure you've already followed the following steps:
npm run execute evm/send-token [local|testnet] ${srcChain} ${destChain} ${amount}
Default Values:
srcChain
isAvalanche
. Valid values are Moonbeam, Avalanche, Fantom, Ethereum, and PolygondestChain
isFantom
. Valid values are Moonbeam, Avalanche, Fantom, Ethereum, and Polygonamount
is10
Note:
- No smart contract to deploy for these examples.
- If you run this script on
testnet
, make sure that the address0xBa86A5719722B02a5D5e388999C25f3333c7A9fb
is funded with aUSDC. 0xBa86A5719722B02a5D5e388999C25f3333c7A9fb
is used to deploy and test all examples. It's funded by default in the local environment when you run start. To ensure that it's funded on all five supported testnets, run node/printBalances.
npm run execute evm/send-token local
--- Initially ---
Balance of 0xBa86A5719722B02a5D5e388999C25f3333c7A9fb at Avalanche is 90000000
Balance of 0xBa86A5719722B02a5D5e388999C25f3333c7A9fb at Fantom is 109000000
--- After ---
Balance of 0xBa86A5719722B02a5D5e388999C25f3333c7A9fb at Avalanche is 80000000
Balance of 0xBa86A5719722B02a5D5e388999C25f3333c7A9fb at Fantom is 118000000