CheatSheet
How to Keep PK Safe
cast wallet import defautKey --interactive
Private keys will be stored in a special encrypted file under a password on your computer.- And then enter the PK
- Then Create a password for it
- Cast will return a addrees(remember it)
- You can use
cast wallet list
to Check if it has been created - Now if want to deploy your contract you can run the next command.
AddressKey
is an address you received after creating a wallet.forge script Path --rpc-url $RPC_URL --account defaultkey --sender addresskey --broadcast
- Enter the password you set
- Finished
How to Check support for any opcode on any chain
Use:
cast call --rpc-url <RPC_URL> --create <OPCODE>
It will return 0x if supported, and an error if the opcode is not supported yet. Refer: https://twitter.com/TheBlockChainer/status/1727309850810392771
How to Deploy different version
Use Deploycode