Keys
Use thru keys when you need to inspect or mutate the keys saved in CLI config.
Commands
Section titled “Commands”| Command | Use it for |
|---|---|
list | List saved key names. |
add <name> <key> | Add a hex private key to config. |
get <name> | Print a saved key value. |
generate <name> | Generate a new random key. |
rm <name> | Remove a saved key. |
Important Details
Section titled “Important Details”- key names are normalized case-insensitively
addexpects a 64-character hex private keygenerateandaddsupport--overwrite
Minimal Pattern
Section titled “Minimal Pattern”thru keys listthru keys generate alicethru keys get alice- Treat this family as local config mutation, not on-chain state mutation.
- Many other command families rely on these key names for flags like
--fee-payerand--authority.