bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
16 lines (15 loc) • 679 B
JavaScript
// Auto synced from github actions. Don't change this file
import { __rest } from "tslib";
import request from '../../rpc-request';
/**
* 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) {
var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]);
return request({ method: 'importwallet', params: methodParams }, bitcoind);
}