UNPKG

@vafanassieff/bitcoin-cli-ts

Version:

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

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