tronprotocol/wallet-cli(新しいタブで開きます)
主要言語: TypeScript
Wallet CLI
- star 数
- 844
- watcher 数
- 99
- fork 数
- 654
- issue 数
- 4
- 最終更新
- 2026/10/30
主要言語: TypeScript
Wallet CLI
This repository holds two independent implementations that share the same purpose but target different users:
Both manage TRON wallets, but they are independent implementations rather than interchangeable account stores. Do not assume every derived account has the same address across implementations: check the recorded BIP44 path when migrating. The TypeScript implementation additionally supports selected EVM networks.
| Java — the original | TypeScript — agent-first rewrite | |
|---|---|---|
| What it is | The mature, full-feature reference CLI. | A newer rewrite focused on programmatic integration. |
| Runtime | JVM — built with Gradle, run as a .jar. Uses the Trident SDK. |
Node.js 20+. |
| Install | git clone + cd wallet-cli/java && ./gradlew build (see Setup) |
npm install -g @tron-walletcli/wallet-cli |
| How you drive it | An interactive prompt only — start it, then type commands at >. |
One-shot subcommands — wallet-cli <command> from your shell. Interactive prompts only for secret input. |
| Command style | PascalCase verbs: RegisterWallet, SendCoin, GetBalance. Amounts in SUN (1 TRX = 1,000,000 SUN). |
Noun-verb subcommands: create, tx send, account balance, with --flags. |
| Output for scripts | Human-readable text. | Stable JSON via -o json (wallet-cli.result.v1) + fixed exit codes (0/1/2). |
| Config / networks | config.conf endpoints, or SwitchNetwork at runtime. Mainnet · Nile · Shasta · custom. |
--network flag / config command. Three TRON networks plus Ethereum, Sepolia, BNB Smart Chain, Base, and their testnets. |
| Signing | Software keystore · Ledger. | Encrypted local keystore · Ledger. Secrets enter via stdin/TTY, never argv or dedicated secret environment variables. |
| Feature scope | The full surface — wallets and transfers, staking, voting and rewards, governance, contracts, TRC10, and the on-chain exchange. | The full surface — HD wallets, TRX/TRC20/TRC10 transfers, staking & delegation, voting & rewards, governance proposals & super-representative operation, contract call/deploy/governance, TRC10 issuance, the on-chain Bancor exchange, SunSwap swaps & liquidity, SunPump trading & launches, multi-sig, GasFree transfers, message signing, and on-chain queries. |
| Best for | People at a terminal who want every TRON capability. | Scripting, CI pipelines, and AI agents. |
| Full docs | java/README.md | ts/README.md |
Interactive only. Build it, start the prompt, then type commands:
$ git clone https://github.com/tronprotocol/wallet-cli.git $ cd wallet-cli/java && ./gradlew build && cd build/libs $ java -jar wallet-cli.jar # opens the interactive prompt > RegisterWallet # prompts twice for the password, then for mnemonic length > Login # unlock it > GetAddress # your TRON address > GetBalance # TRX balance
Full setup (config.conf, connecting to a node), the complete A–Z command list, and features like GasFree and multi-sig live in java/README.md — jump to Setup, Quickstart, Commands, or GasFree.
Install from npm, then run subcommands directly from your shell:
$ npm install -g @tron-walletcli/wallet-cli $ wallet-cli create --label main # prompts for a master password $ wallet-cli account balance --network tron:3448148188 $ wallet-cli account balance -o json # one wallet-cli.result.v1 JSON frame
Every command has a reference page, and the JSON contract, exit codes, and agent integration are documented in depth. Start at ts/README.md, then:
> prompt, with the wallet unlocked once for the whole session? → the Java version.npm install -g, no build step).