UNPKG

bitcoin-cli-ts

Version:

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

16 lines (15 loc) 613 B
// Auto synced from github actions. Don't change this file import { __rest } from "tslib"; import request from '../../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"). * */ export function restoreWallet(params) { var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]); return request({ method: 'restorewallet', params: methodParams }, bitcoind); }