Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
217 changes: 0 additions & 217 deletions .github/workflows/ts-standalone-release.yml

This file was deleted.

2 changes: 0 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ are used only for secret input (create / import / backup / delete). **All `ts/`
cd ts
npm ci # install
npm run build # bundle to dist/ via tsup (bin: wallet-cli -> dist/index.js)
npm run build:standalone -- --outfile standalone/wallet-cli
# Bun (pinned devDependency) standalone executable for the native OS/CPU
npm run dev -- <args> # run from source via tsx (e.g. npm run dev -- create --label main)
npm test # vitest (tests are co-located as *.test.ts)
npm run typecheck # tsc --noEmit
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Both manage the same kind of wallet on the same networks — your address is ide
| | [**Java**](java/README.md) — the original | [**TypeScript**](ts/README.md) — 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](https://github.com/tronprotocol/trident) SDK. | Standalone executable, or [Node.js](https://nodejs.org) **20+** for the npm package. |
| **Install** | `git clone` + `./gradlew build` (see [Setup](java/README.md#setup)) | Download from [GitHub Releases](https://github.com/tronprotocol/wallet-cli/releases), or `npm install -g @tron-walletcli/wallet-cli`. |
| **Runtime** | JVM — built with Gradle, run as a `.jar`. Uses the [Trident](https://github.com/tronprotocol/trident) SDK. | [Node.js](https://nodejs.org) **20+**. |
| **Install** | `git clone` + `./gradlew build` (see [Setup](java/README.md#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`](ts/docs/machine-interface.md)) + fixed exit codes (`0`/`1`/`2`). |
Expand Down Expand Up @@ -53,7 +53,7 @@ Full setup (config.conf, connecting to a node), the complete A–Z command list,

## TypeScript — get a taste

Download the standalone executable from [GitHub Releases](https://github.com/tronprotocol/wallet-cli/releases), or install from npm when Node.js 20+ is already available. Then run subcommands directly from your shell:
Install from npm, then run subcommands directly from your shell:

```console
$ npm install -g @tron-walletcli/wallet-cli
Expand All @@ -73,4 +73,4 @@ Every command has a reference page, and the JSON contract, exit codes, and agent

- **Scripting, CI, or building an AI agent?** → the [TypeScript version](ts/README.md) — the JSON envelope and deterministic exit codes exist for exactly this.
- **Working interactively and want the complete TRON toolkit** — GasFree, TRC10 issuance, on-chain DEX/governance, or multi-sig? → the [Java version](java/README.md).
- **Just sending TRX/tokens or staking from your own machine?** → either works; the TypeScript CLI can run from a downloaded executable with no runtime installation.
- **Just sending TRX/tokens or staking from your own machine?** → either works; the TypeScript CLI is the lighter install (`npm install -g`, no build step).
2 changes: 1 addition & 1 deletion java/src/main/java/org/tron/common/utils/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public class Utils {

public static final int MIN_LENGTH = 2;
public static final int MAX_LENGTH = 14;
public static final String VERSION = " v4.11.0";
public static final String VERSION = " v4.10.0";
public static final String TRANSFER_METHOD_ID = "a9059cbb";

private static SecureRandom random = new SecureRandom();
Expand Down
4 changes: 1 addition & 3 deletions ts/.gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
node_modules/
dist/
/standalone/
/release-assets/
*.log
.wallet-cli/
.env
.private/
docs/superpowers
docs/superpowers
Loading