Set the active account.
wallet-cli use <account> [options]
account— accountId, label, or address to make active
Global options only.
wallet-cli use main-1✅ Active account: main-1
TRON address TRs9HgTuY3dT3yDasdFdP9WQHqL37891Ax
EVM address 0xf3ec542047Fe61E0b753a7EBca95B27a672F9cbeYou can also select by accountId or address: wallet-cli use wlt_758891fa.1 / wallet-cli use TRs9Hg….
wallet-cli use main-1 -o json{"schema":"wallet-cli.result.v1","success":true,"command":"use","data":{"previous":"wlt_758891fa.0","accountId":"wlt_758891fa.1","label":"main-1","type":"seed","index":1,"active":true,"addresses":{"tron":"TRs9HgTuY3dT3yDasdFdP9WQHqL37891Ax","evm":"0xf3ec542047Fe61E0b753a7EBca95B27a672F9cbe"},"seedId":"wlt_758891fa","derivationPath":{"tron":"m/44'/195'/1'/0/0","evm":"m/44'/60'/0'/0/1"}},"meta":{"durationMs":14,"warnings":[]}}data is the account switched to, plus previous (the account that was active before). Local command — no chain block.
| Field | Type | Meaning |
|---|---|---|
previous |
string | Account id that was active before |
accountId |
string | Now-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 (just made active) |
addresses |
object | One entry per family the account can produce: tron (base58) and/or evm (0x, EIP-55 checksummed) |
derivationPath |
object | null | Per-family BIP44 path for derived accounts; null for watch / privateKey, which were never derived |
seedId |
string | Owning seed wallet id (seed accounts only) |
family |
string | Chain family this account is bound to — single-family accounts (watch, ledger) only |
0 success · 1 execution failure · 2 usage error. See machine-interface.