@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
21 lines • 911 B
TypeScript
import { Bitcoind } from '../../types.js';
type MigrateWalletParams = {
bitcoind: Bitcoind;
wallet_name?: string;
passphrase?: string;
};
/**
* 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 declare function migrateWallet(params: MigrateWalletParams): Promise<any>;
export {};
//# sourceMappingURL=migrate-wallet.d.ts.map