bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
20 lines (19 loc) • 815 B
JavaScript
;
// Auto synced from github actions. Don't change this file
Object.defineProperty(exports, "__esModule", { value: true });
exports.restoreWallet = void 0;
var tslib_1 = require("tslib");
var rpc_request_1 = tslib_1.__importDefault(require("../../rpc-request"));
/**
* restorewallet "wallet_name" "backup_file" ( load_on_startup )
*
* Restores and loads a wallet from backup.
* The rescan is significantly faster if a descriptor wallet is restored
* and block filters are available (using startup option "-blockfilterindex=1").
*
*/
function restoreWallet(params) {
var bitcoind = params.bitcoind, methodParams = tslib_1.__rest(params, ["bitcoind"]);
return (0, rpc_request_1.default)({ method: 'restorewallet', params: methodParams }, bitcoind);
}
exports.restoreWallet = restoreWallet;