wallet-cli current

August 5, 2026 · View on GitHub

Show the current (active) account.

Synopsis

wallet-cli current [options]

Options

OptionDescription
--qrAlso 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.

FieldTypeMeaning
accountIdstringActive account id
labelstringAccount label
typestringseed / privateKey / watch / ledger
indexnumber | nullHD derivation index; null for non-HD accounts
activebooleanAlways true
addresses.tronstringBase58 TRON address
seedIdstringOwning seed wallet id (seed accounts only)
familystringChain family, e.g. tron (watch accounts only)

Exit status

0 success · 1 execution failure · 2 usage error. See machine-interface.

See also

use · list