thru-cli commands that are not nested under a program-specific family.
Use This When
- you want to query node or chain state
- you want to inspect account data or balances
- you want the top-level native
transfercommand
- you are working with token accounts or mints: Token Commands
- you are building or executing raw transactions: Transaction Commands
- you are creating or managing programs: Program Commands
Commands
| Command | Use it for |
|---|---|
thru-cli getversion | Fetch node version information. |
thru-cli gethealth | Check node health. |
thru-cli getheight | Read cluster block heights. |
thru-cli getaccountinfo [account] [--data-start N] [--data-len N] | Inspect account metadata and optionally slice returned account data. |
thru-cli getbalance [account] | Fetch balance for a key name or address. |
thru-cli getslotmetrics <slot> [end_slot] | Inspect state counters and collected fees for one slot or a slot range. |
thru-cli transfer <src> <dst> <value> | Send native Thru between accounts. |
Common Patterns
Notes
- These are the fastest commands to try first for read-only health, balance, or account inspection tasks.
getaccountinfoandgetbalancecan resolve config key names as account identifiers.- Use
--jsonif the next step depends on parsing returned values programmatically.