Link to this headingAvalanche

Link to this headingCommands

Common Commands:

# Get Account balance cast balance 0x589E8e6A90DB021a19eda84b940Dcf7701C7B2d6 --rpc-url https://api.avax.network/ext/bc/C/rpc --ether cast balance 0x589E8e6A90DB021a19eda84b940Dcf7701C7B2d6 --rpc-url https://api.avax-test.network/ext/bc/C/rpc --ether # Block Number cast block-number --rpc-url https://api.avax.network/ext/bc/C/rpc #Chain Number cast chain-id --rpc-url https://api.avax.network/ext/bc/C/rpc #Client Version cast client --rpc-url https://api.avax.network/ext/bc/C/rpc #Get Block cast block 74310177 --rpc-url https://api.avax.network/ext/bc/C/rpc #Get Transaction cast tx 0x3b6279ad7fe18b2f085daf9033517da5e84532de0a3c7e446f0d8e86fdc508db --rpc-url https://api.avax.network/ext/bc/C/rpc #Send Avax cast send <TO_ADDRESS> --value <AMOUNT_IN_ETHER> --rpc-url https://api.avax.network/ext/bc/C/rpc --private-key <YOUR_PRIVATE_KEY> # Call a contract (read-only) cast call 0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7 "totalSupply()(uint)" --rpc-url https://api.avax.network/ext/bc/C/rpc 16770652728448310826057269 [1.677e25] # Get contract code cast code 0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7 --rpc-url https://api.avax.network/ext/bc/C/rpc # Get storage slot cast storage 0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7 0 --rpc-url https://api.avax.network/ext/bc/C/rpc # Send transaction to contract cast send <CONTRACT_ADDRESS> "transfer(address,uint256)" <TO_ADDRESS> <AMOUNT> --rpc-url https://api.avax.network/ext/bc/C/rpc --private-key <YOUR_PRIVATE_KEY> cast resolve-name <NAME> --rpc-url https://api.avax.network/ext/bc/C/rpc