wallet-cli¶
wallet-cli is a command-line wallet for the TRON network; its official repository is
tronprotocol/wallet-cli. It manages keys and accounts
locally and connects to TRON services to query chain data and build, sign, and broadcast
transactions.
The repository provides two implementations:
- Java CLI — the original, full-featured implementation. It provides an interactive REPL for people and a non-interactive Standard CLI for scripts using the Java JAR.
- TypeScript / npm CLI — an agent-first Node.js implementation published as
@tron-walletcli/wallet-cli, with grouped commands, deterministic exit codes, and structured JSON output.
Compare entry points¶
Each interface can query account data. The Java CLI accepts an arbitrary address, while the TypeScript CLI operates on an account already stored in its local wallet:
java -jar java/build/libs/wallet-cli.jar --network nile get-account --address TXyz...
GetAccount TXyz...
wallet-cli account info --network tron:nile
This uses the active account. Pass --account with an account id, label, or address already
present in the local wallet to select a different stored account.
Choose an implementation¶
| Implementation | Command style | Best suited for |
|---|---|---|
| Java CLI | Interactive commands such as GetAccount, or Standard CLI commands such as get-account |
The complete TRON wallet feature set, manual operation, and Java JAR integrations |
| TypeScript / npm CLI | Grouped commands such as account info and tx send |
Automation, CI/CD, structured JSON integrations, and AI agents |
The two implementations have separate installation and runtime requirements. Continue with the Java CLI overview or the TypeScript / npm CLI overview.