UNPKG

bitcoin-cli-ts

Version:

Auto-generated Bitcoin client library for bitcoind JSON-RPC API

22 lines (21 loc) 1.05 kB
"use strict"; // Auto synced from github actions. Don't change this file Object.defineProperty(exports, "__esModule", { value: true }); exports.setHdSeed = void 0; var tslib_1 = require("tslib"); var rpc_request_1 = tslib_1.__importDefault(require("../../rpc-request")); /** * sethdseed ( newkeypool "seed" ) * * Set or generate a new HD wallet seed. Non-HD wallets will not be upgraded to being a HD wallet. Wallets that are already * HD will have a new HD seed set so that new keys added to the keypool will be derived from this new seed. * Note that you will need to MAKE A NEW BACKUP of your wallet after setting the HD wallet seed. * Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted. * Note: This command is only compatible with legacy wallets. * */ function setHdSeed(params) { var bitcoind = params.bitcoind, methodParams = tslib_1.__rest(params, ["bitcoind"]); return (0, rpc_request_1.default)({ method: 'sethdseed', params: methodParams }, bitcoind); } exports.setHdSeed = setHdSeed;