wallet-cli derive

July 15, 2026 · View on GitHub

Derive the next HD account from a seed wallet (by --seed-id).

Synopsis

wallet-cli derive --seed-id <wlt_…> [--index <n>] [--label <l>] [options]

Options

OptionDescription
--seed-id <string>seed id of the HD wallet to derive from — the HD group header in list [required]
--index <number>explicit HD account index; omit to use the next free index
--label <string>label for the new account, 1-64 chars; omit to auto-generate
--password-stdinread the master password from stdin (fd 0)

Plus global options.

Notes

Private-key and Ledger accounts have no seed and cannot derive. See Accounts & HD.

Examples

In the examples, $PW is your master password (from an environment variable, password manager, etc.), fed on stdin via --password-stdin.

printf '%s' "$PW" | wallet-cli derive --seed-id wlt_y8cz6xda --password-stdin
✅ Derived sub-account "main-1"
  Address  TWCa1W6BkcXZnRGxeZZw9jh8eNgULDVGzj
  Active   yes
  Note     shares master mnemonic; no separate backup needed
printf '%s' "$PW" | wallet-cli derive --seed-id wlt_y8cz6xda --password-stdin -o json
{"schema":"wallet-cli.result.v1","success":true,"command":"derive","data":{"status":"created","accountId":"wlt_y8cz6xda.1","label":"main-1","type":"seed","index":1,"active":true,"addresses":{"tron":"TWCa1W6BkcXZnRGxeZZw9jh8eNgULDVGzj"},"seedId":"wlt_y8cz6xda"},"meta":{"durationMs":1013,"warnings":[]}}

Output

data is the newly derived account (always an HD seed account). Local command — no chain block.

FieldTypeMeaning
statusstring"created"
accountIdstringStable id <seedId>.<index>
labelstringAccount label (default <wallet-name>-<index>, e.g. main-1)
typestringAlways "seed"
indexnumberHD derivation index
activebooleanAlways true (the new account is made active)
addresses.tronstringBase58 TRON address
seedIdstringOwning seed wallet id

Exit status

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

See also

create · list