UNPKG

bitcoin-cli-ts

Version:

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

20 lines (19 loc) 960 B
// Auto synced from github actions. Don't change this file import { __rest } from "tslib"; import request from '../../rpc-request'; /** * migratewallet ( "wallet_name" "passphrase" ) * * Migrate the wallet to a descriptor wallet. * A new wallet backup will need to be made. * The migration process will create a backup of the wallet before migrating. This backup * file will be named <wallet name>-<timestamp>.legacy.bak and can be found in the directory * for this wallet. In the event of an incorrect migration, the backup can be restored using restorewallet. * Encrypted wallets must have the passphrase provided as an argument to this call. * This RPC may take a long time to complete. Increasing the RPC client timeout is recommended. * */ export function migrateWallet(params) { var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]); return request({ method: 'migratewallet', params: methodParams }, bitcoind); }