Quick Start
Basic Commands
After installation, run queries with these commands:
ts --version
ts help
ts tps --raw
ts block --raw
ts token usdt --rawExpected behavior:
ts --versionprints the installed CLI version.ts helplists available commands and global options.- Query commands return JSON data from TronScan API.
- Use
--rawor--jsonfor one-line JSON that is easier to parse in scripts.
In the terminal
After installing ts globally, run commands directly:
ts help # list all subcommands
ts token-price trx # token price by symbol
ts token usdt # token info
ts search usdt # search
ts block # latest block
ts tps # current TPS
ts account TXxx... # account details
ts tx af949... # transaction by hash
ts transfer-trc20 TXxx... # TRC20 transfers
ts security-account TXxx... # account risk checkMachine-readable output
All query commands print JSON. By default, the JSON is formatted for reading. Use --raw or --json for compact one-line JSON:
ts tps --raw
ts account TXxx... --jsonNotes for scripts and AI agents:
- Prefer
--rawor--json. - Do not parse colorized or human-facing error text from stderr.
- Business fields come from TronScan API responses and can differ by endpoint.
- Pagination options are
--start Nand--limit N; defaults are0and20.
Last updated on: