UNPKG

@vafanassieff/bitcoin-cli-ts

Version:

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

15 lines 595 B
// Auto synced from github actions. Don't change this file import request from '../../rpc-request.js'; /** * 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) { const { bitcoind, ...methodParams } = params; return request({ method: 'restorewallet', params: methodParams }, bitcoind); } //# sourceMappingURL=restore-wallet.js.map