Show the current (active) account.
wallet-cli current [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).
wallet-cli currentActive account: main-1
TRON address TRs9HgTuY3dT3yDasdFdP9WQHqL37891AxAdd --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 --qrActive 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 currenterror [missing_wallet_address]: no active account; import one firstdata 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) |
0 success · 1 execution failure · 2 usage error. See machine-interface.