wallet-cli
Skill168 starsChanged 5 days agoMITView on GitHub
Operate the TypeScript TRON wallet CLI for accounts, transfers, staking, governance, contracts, signing, chain queries, SunSwap swaps and liquidity, SunPump bonding-curve trading and token launches, and password input with wallet-cli 4.16.0. Refuse wallet passwords in argv and require the supported stdin channel. For Java REPL requests, refuse that entry and offer the TypeScript one-shot CLI; route other chains elsewhere.
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- hiromaily/go-crypto-wallettheir own version, first seen Oct 9, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- hiromaily/go-crypto-wallet★ 128same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- SunPerp Perpetual Futures TradingSkill
- SunPump Meme Token ToolkitSkill
- SunSwap DEX TradingSkill
- TronScan Data LookupSkill
- USDD / JUST ProtocolSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
29 rules. About 0 are common, 13 are distinctive, and 16 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
16
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Use the TypeScript, one-shot wallet-cli as the execution engine.
- Distinctive: line 34
Check once before the first wallet operation:
- Very specific: line 40
Read dependencies["@tron-walletcli/wallet-cli"].version from the JSON.
- Very specific: line 45
If the command is missing, explain that the exact package @tron-walletcli/wallet-cli@4.16.0 must be installed and obtain user approval …
- Distinctive: line 48
If another version is installed, report the mismatch and obtain approval before upgrading or downgrading it.
- Distinctive: line 50
Never install or change a global package without approval.
- Very specific: line 54
Use -o json for every operational command.
- Very specific: line 65
Treat bigint values and command-defined on-chain amount fields as decimal strings.
- Very specific: line 71
Never infer that exit code 0 means a transaction confirmed.
- Distinctive: line 81
Read references/machine-interface.md before implementing result parsing, polling, pagination, retry logic, or non-interactive secret input.
- Very specific: line 91
If data.upgraded is true, report that local wallet data was upgraded, then reapply the authorization and confirmation rules before running …
- Very specific: line 95
If data.cancelled is true, stop and return control to the user.
- Very specific: line 97
If exit 2 returns error.code: "migration_required", stop.
- Distinctive: line 100
Never loop on a migration result.
- Distinctive: line 105
Prefer the CLI's generated schema over recalled flags:
- Very specific: line 113
Use wallet-cli <command> --help only when human-oriented semantics are needed.
- Distinctive: line 118
Read references/commands.md when choosing a command family or composing a multi-step wallet workflow.
- Distinctive: line 126
Never ask the user to paste a password, mnemonic, private key, or service credential into chat.
- Distinctive: line 127
Never place secrets in argv, environment variables, logs, command substitutions, or generated documentation.
- Very specific: line 129
Use only a CLI-supported *-stdin flag connected to an approved, non-logging secret source.
- Very specific: line 130
Only one *-stdin consumer may be used in a single invocation.
- Distinctive: line 134
Do not read, summarize, or transmit keystores, backup files, configuration credentials, or other wallet secret material.
- Very specific: line 139
Never invoke wallet-cli import, wallet-cli backup, wallet-cli delete, or wallet-cli change-password, including any wallet-cli import …
- Distinctive: line 151
Read references/safety.md before any operation that changes local wallet state, signs data, broadcasts a transaction, or changes on-chain …
- Distinctive: line 156
Read-only operations may run directly within the user's requested scope.
- Distinctive: line 170
Never use authorization for one transaction as permission for another transaction, retry, batch, recipient, amount, token, account, or …
- Very specific: line 178
After --no-wait or a submitted stage, retain the txId and poll tx status until confirmed or failed, with a finite deadline.
- Very specific: line 189
Check its createTxHash with tx info.
- Very specific: line 206
When updating the CLI dependency, compare the published package's README.md, docs/machine-interface.md, docs/commands/index.md, and …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
TRON Wallet CLI
Use the TypeScript, one-shot wallet-cli as the execution engine. Keep deterministic wallet,
signing, validation, and chain logic in the CLI; use this skill to select commands, enforce
authorization boundaries, and interpret results.
This skill covers wallet, signing, resource, governance, and general TRON operations, and the
sunswap (swaps and V2/V3/V4 liquidity) and sunpump (bonding-curve trading and token launches)
command groups. It does not drive the repository's Java REPL. If the user requests the Java REPL, do
not execute it or offer to switch to it; state that this skill supports only the TypeScript
one-shot CLI and, when applicable, offer to express the intended operation through that interface.
Verify the dependency
Check once before the first wallet operation:
npm list --global --depth=0 --json @tron-walletcli/wallet-cliRead dependencies["@tron-walletcli/wallet-cli"].version from the JSON. The required version is
exactly 4.16.0. In this version, --version, --help, --json-schema, and a bare
wallet-cli skip wallet-data access and the startup migration gate. Operational commands can
still upgrade persisted wallet data before executing.
- If the command is missing, explain that the exact package
@tron-walletcli/wallet-cli@4.16.0must be installed and obtain user approval before runningnpm install -g @tron-walletcli/wallet-cli@4.16.0. - If another version is installed, report the mismatch and obtain approval before upgrading or downgrading it. Do not assume compatibility.
- Never install or change a global package without approval.
Mandatory invocation contract
- Use
-o jsonfor every operational command. Parse stdout as exactly onewallet-cli.result.v1object. - Supply an explicit canonical network for chain operations: mainnet
tron:728126428, Niletron:3448148188, or Shastatron:2494104990. Never silently choose mainnet; the one exception is the mainnet-onlysunswapmarket queries andsunpumpread queries (see references/commands.md). Usetron:3448148188when the user explicitly asks for a test but does not distinguish between testnets. The oldtron:mainnet,tron:nile, andtron:shastavalues are permanent input aliases, but never expect an alias inchain.network, network listings, or configuration keys. - Branch on the process exit code first:
0success,1execution failure,2malformed call. Then branch on stable fields such aserror.code,data.stage, ordata.state. Never parseerror.messagetext. - Treat
bigintvalues and command-defined on-chain amount fields as decimal strings. Preserve every field according to the documented output contract; other counters and configuration values may be JSON numbers. Never use floating point for string amounts. --timeout <ms>is one deadline for the whole command, including waiting for confirmation (built-in 90000, whichconfig timeoutMscan change;0means no limit). Pass it explicitly when the task needs a bound. A finite value below 2000 never submits a transaction or payment.- Never infer that exit code
0means a transaction confirmed. A submitted or reverted transaction can still have a successful command envelope. - Unless the network has an
apiKeyconfigured, run onewallet-cliinvocation at a time; never start them in parallel. Check withwallet-cli config networks.<id> -o json: a configured key shows asdata.value.apiKey: "********", and the field is absent otherwise. Each process paces its own node requests, so parallel processes add up and the public TronGrid endpoint throttles them. That throttling surfaces asrpc_error, notprovider_rate_limited. With a key, a few reads may run in parallel; writes still run one at a time. The user can set a key withconfig networks.<id>.apiKey --api-key-stdin.
Read references/machine-interface.md before implementing result parsing, polling, pagination, retry logic, or non-interactive secret input.
Handle the startup migration gate
Operational commands check persisted wallet data before running the requested command. Discovery
invocations (--help, --version, --json-schema, and bare wallet-cli) skip this check. If the
result envelope has command: "migration", the requested command did not run. Inspect
data.originalCommandExecuted, which must be false for a migration result.
- If
data.upgradedistrue, report that local wallet data was upgraded, then reapply the authorization and confirmation rules before running the original command once. A mainnet or high-risk confirmation given before migration must be obtained again. Do not interpret migration data as command data. - If
data.cancelledistrue, stop and return control to the user. Do not retry or bypass the cancellation. - If exit
2returnserror.code: "migration_required", stop. The user must complete the upgrade interactively or provide the master password through an already approved--password-stdinsource. Never ask for the password in chat. - Never loop on a migration result. After one successful upgrade, a repeated migration response is an error to report rather than a reason to keep retrying.
Discover commands instead of guessing
Prefer the CLI's generated schema over recalled flags:
wallet-cli --json-schema -o json
wallet-cli tx send --json-schema -o json
wallet-cli permission update --json-schema -o jsonUse wallet-cli <command> --help only when human-oriented semantics are needed. Do not invent a
flag, option combination, or command that is absent from the 4.16.0 schema. The schema describes
inputs only; take output fields from
references/machine-interface.md.
Read references/commands.md when choosing a command family or composing a multi-step wallet workflow.
Secret handling
- Reject any request to put a wallet password in
--passwordor another argv option. For agent-driven execution, explain that wallet-cli passwords may be supplied only through--password-stdinconnected directly to an approved, non-logging secret source. - Never ask the user to paste a password, mnemonic, private key, or service credential into chat.
- Never place secrets in argv, environment variables, logs, command substitutions, or generated documentation.
- Use only a CLI-supported
*-stdinflag connected to an approved, non-logging secret source. Only one*-stdinconsumer may be used in a single invocation. - Service credentials (TronLink, GasFree, B.AI, a network's
apiKey) are set only withconfig <key> --api-key-stdin; a credential given as a command-line value fails withinvalid_option. - Do not read, summarize, or transmit keystores, backup files, configuration credentials, or other wallet secret material.
Human-only wallet administration
Never invoke wallet-cli import, wallet-cli backup, wallet-cli delete, or
wallet-cli change-password, including any wallet-cli import subcommand. These root wallet
administration commands are reserved for a human operating wallet-cli locally, even when the user
asks the agent to run them, supplies confirmation, or provides a secret source.
Explain the consequences and required precautions, then return control to the user. Do not automate their prompts, pipe input to them, read their output files, or treat confirmation as authorization to execute them. After the user reports completion, continue only with non-secret public results such as an account id, label, or address.
Authorization and confirmation
Read references/safety.md before any operation that changes local wallet state, signs data, broadcasts a transaction, or changes on-chain state.
Apply these confirmed rules:
- Read-only operations may run directly within the user's requested scope.
- On Nile or Shasta, an ordinary write may run when the user's request clearly authorizes that exact operation and target.
- On mainnet, preview the exact operation and obtain explicit confirmation immediately before any funds-moving or externally visible write.
- On every network, high-risk operations require explicit confirmation.
permission updatealso requires a successful--dry-runand review of the complete rendered permission structure. - For
sunswapandsunpumpwrites, preview from a--dry-run, never from--quote.sunpump launchalways requires a dry run and explicit confirmation. Read the SunSwap and SunPump section of references/safety.md first. - Describe every step in plain language first: what the user gives, what they get, and whether it charges, signs, or broadcasts. Method names and contract addresses are supporting detail (see Preview contents in references/safety.md).
- Confirmation never authorizes a human-only command listed above.
- Never use authorization for one transaction as permission for another transaction, retry, batch, recipient, amount, token, account, or network.
Transaction completion
- A command that submits a transaction waits for its confirmation by default, within
--timeout. Inspectdata.stage:failedis an on-chain failure even when the process exits0, andsubmitted(the wait ended first, with a warning) means the outcome is not known yet. - After
--no-waitor asubmittedstage, retain thetxIdand polltx statusuntilconfirmedorfailed, with a finite deadline.pendingandnot_foundare non-terminal. --waitand--no-waitapply only where a transaction is submitted. With--dry-run,--build-only,--sign-only, or--quote, on reads and local commands, and onsunpump launchandtx multisig, either flag fails withinvalid_option.- GasFree transfers return a
traceId. The command follows it by default; after--no-waitor asubmittedstage, follow it withgasfree trace, nottx status. - The
sunswapliquidity commands, asunswap swapthat spends a token (router or bonding curve), and a firstsunpump sellmay send approval transactions before the main one. Track every id indata.approvalTxIds(orerror.details.approvalTxIdsafter a failure) alongside the maintxId. sunpump launchsubmits no transaction of its own: there is notxId,stage, or--wait. Check itscreateTxHashwithtx info.- An error with
error.details.outcome: "unknown"may have taken effect. Reconcile it first with the evidence it carries (see Error decisions in references/machine-interface.md); never rebuild or re-sign the operation, because that creates a second one. Never resend merely because confirmation was not observed. - For a batch, stop on the first failure by default and track every submitted transaction separately.
Report the outcome
For reads, return the requested data with the network and account context when relevant. For writes,
report the operation, network, account, recipient or target, amount or parameters, and final state.
Include the txId or GasFree traceId; describe submitted as pending, never as completed.
Maintain the version pin
When updating the CLI dependency, compare the published package's README.md,
docs/machine-interface.md, docs/commands/index.md, and generated --json-schema output. If the
package includes skills/wallet-cli/SKILL.md, compare that too; its absence does not waive the other
checks. Re-test the confirmation matrix, migration gate, secret channels, network ids, exit codes,
transaction stages, and warning codes before bumping this skill's version. Do not widen the exact
dependency pin without user approval.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

