UNPKG

bitcoin-cli-ts

Version:

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

22 lines (21 loc) 1.12 kB
"use strict"; // Auto synced from github actions. Don't change this file Object.defineProperty(exports, "__esModule", { value: true }); exports.dumpWallet = void 0; var tslib_1 = require("tslib"); var rpc_request_1 = tslib_1.__importDefault(require("../../rpc-request")); /** * dumpwallet "filename" * * Dumps all wallet keys in a human-readable format to a server-side file. This does not allow overwriting existing files. * Imported scripts are included in the dumpfile, but corresponding BIP173 addresses, etc. may not be added automatically by importwallet. * Note that if your wallet contains keys which are not derived from your HD seed (e.g. imported keys), these are not covered by * only backing up the seed itself, and must be backed up too (e.g. ensure you back up the whole dumpfile). * Note: This command is only compatible with legacy wallets. * */ function dumpWallet(params) { var bitcoind = params.bitcoind, methodParams = tslib_1.__rest(params, ["bitcoind"]); return (0, rpc_request_1.default)({ method: 'dumpwallet', params: methodParams }, bitcoind); } exports.dumpWallet = dumpWallet;