wallet-cli current
August 5, 2026 · View on GitHub
Show the current (active) account.
Synopsis
wallet-cli current [options]
Options
| Option | Description |
|---|---|
--qr | Also render the active account's address as a scannable QR code in the terminal, with the full address printed below it for manual verification; text output only |
Plus the global options (--account overrides which account is shown).
Examples
wallet-cli current
Active account: main-1
TRON address TRs9HgTuY3dT3yDasdFdP9WQHqL37891Ax
Add --qr to also render the active account's address as a scannable receive QR code, drawn with block characters below the address. Purely local — the address comes from local keystore metadata, no node access:
wallet-cli current --qr
Active account: main-1
TRON address TRs9HgTuY3dT3yDasdFdP9WQHqL37891Ax
[ scannable QR code of the address, drawn in the terminal ]
The QR is a terminal rendering only and scans from a real terminal (where the block characters line up); -o json is unchanged by --qr (machine consumers take the address and generate their own code). If the terminal is too narrow to fit it, it degrades to printing just the address with a ! hint.
wallet-cli current -o json
{"schema":"wallet-cli.result.v1","success":true,"command":"current","data":{"accountId":"wlt_758891fa.1","label":"main-1","type":"seed","index":1,"active":true,"addresses":{"tron":"TRs9HgTuY3dT3yDasdFdP9WQHqL37891Ax"},"seedId":"wlt_758891fa"},"meta":{"durationMs":13,"warnings":[]}}
With no active account yet, it fails with missing_wallet_address (exit 1):
wallet-cli current
error [missing_wallet_address]: no active account; import one first
Output
data is the current active account. Local command — no chain block.
| Field | Type | Meaning |
|---|---|---|
accountId | string | Active account id |
label | string | Account label |
type | string | seed / privateKey / watch / ledger |
index | number | null | HD derivation index; null for non-HD accounts |
active | boolean | Always true |
addresses.tron | string | Base58 TRON address |
seedId | string | Owning seed wallet id (seed accounts only) |
family | string | Chain family, e.g. tron (watch accounts only) |
Exit status
0 success · 1 execution failure · 2 usage error. See machine-interface.