Skip to content

Latest commit

 

History

History
64 lines (44 loc) · 2.13 KB

File metadata and controls

64 lines (44 loc) · 2.13 KB

wallet-cli use

Set the active account.

Synopsis

wallet-cli use <account> [options]

Arguments

  • account — accountId, label, or address to make active

Options

Global options only.

Examples

wallet-cli use main-1
✅ Active account: main-1
  TRON address  TRs9HgTuY3dT3yDasdFdP9WQHqL37891Ax
  EVM address   0xf3ec542047Fe61E0b753a7EBca95B27a672F9cbe

You 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":[]}}

Output

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

Exit status

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

See also

current · list