# 1st
anvil --fork-url $AVALANCHE_RPC
# 2nd using anvil's default account at index 0
cast send 0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7 "deposit()" --value $(cast to-wei 1 ether) --unlocked \
--from 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --rpc-url http://localhost:8545
# 3rd chceck balance
cast balance --erc20 0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 \
--rpc-url http://localhost:8545
Created
April 17, 2025 08:34
-
-
Save Aviksaikat/75a72896fa2290b529e0a03414feac8d to your computer and use it in GitHub Desktop.
How to fund wallet with WAVAX in anvil fork
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment