@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
15 lines • 660 B
JavaScript
// Auto synced from github actions. Don't change this file
import request from '../../rpc-request.js';
/**
* importwallet "filename"
*
* Imports keys from a wallet dump file (see dumpwallet). Requires a new wallet backup to include imported keys.
* Note: Blockchain and Mempool will be rescanned after a successful import. Use "getwalletinfo" to query the scanning progress.
* Note: This command is only compatible with legacy wallets.
*
*/
export function importWallet(params) {
const { bitcoind, ...methodParams } = params;
return request({ method: 'importwallet', params: methodParams }, bitcoind);
}
//# sourceMappingURL=import-wallet.js.map