bitcoind.app
CommandsGuidesContact ↗
Home/Wallet/sethdseed
Wallet

sethdseed

Set or generate a new HD wallet seed. Non-HD wallets will not be upgraded. Only for legacy wallets.

Parameters

newkeypoolbooleanoptional
Flush old unused addresses. Default: true
seedstringoptional
WIF private key as new HD seed. If not specified, a random seed is generated.

Returns

nullnull on success

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"sethdseed","params":[]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

null
← Previous
walletpassphrase
Next →
unloadwallet

More Wallet Commands

abandontransactioncreatewalletdumpprivkeygetbalancegetnewaddressgettransaction

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗