sethdseed

Input(s) 2

The sethdseed command allows users to set a new HD wallet seed or generate one if not provided. This enables the derivation of new keys for the wallet, improving security and privacy. It's important to create a new backup of the wallet after setting a new HD seed to ensure all future keys are correctly derived.

How is this used?

This command is used to manage the HD seed of a Bitcoin wallet. Users can either generate a new seed or provide their own. By setting a new HD seed, users ensure that future keys derived from this seed will be used, enhancing the security and privacy of their wallet. It's crucial to make a new backup of the wallet after setting a new HD seed to safeguard against potential loss of funds.

Request

method

sethdseed

newkeypool

Optional

seed

Optional

Inputs(2)

newkeypool Whether to flush old unused addresses, including change addresses, from the keypool and regenerate it
seed The WIF private key to use as the new HD seed

Result