Cast
callis used for viewing datasendis used for modifying state (invoke functions, create contracts, etc.)
Send ETH to an address
cast send <SENDER_ADDRESS> --value 1ether --rpc-url ${RPC_URL} --private-key ${PRIVATE_KEY}Call a view function
cast call <CONTRACT_ADDRESS> "getCreator()" --rpc-url ${RPC_URL}Invoke a function
cast send <CONTRACT_ADDRESS> "withdraw(address,uint256)" <ARG_1> <ARG_2> \
--rpc-url ${RPC_URL} --private-key ${PRIVATE_KEY}Get and send tokens on an anvil fork
cast rpc anvil_impersonateAccount <TOKEN_WHALE> --rpc-url ${RPC_URL}
cast send <TOKEN_ADDRESS> \
--from <TOKEN_WHALE> \
"transfer(address,uint256)(bool)" \
<RECEIVER_ACCOUNT> \
10000000 \
--unlocked \
--rpc-url ${RPC_URL}Hex Conversion
Get storage slot from any contract
Get OPCODES for a contract
Last updated