bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
21 lines (20 loc) • 1.11 kB
JavaScript
;
// Auto synced from github actions. Don't change this file
Object.defineProperty(exports, "__esModule", { value: true });
exports.importDescriptors = void 0;
var tslib_1 = require("tslib");
var rpc_request_1 = tslib_1.__importDefault(require("../../rpc-request"));
/**
* importdescriptors requests
*
* Import descriptors. This will trigger a rescan of the blockchain based on the earliest timestamp of all descriptors being imported. Requires a new wallet backup.
* Note: This call can take over an hour to complete if using an early timestamp; during that time, other rpc calls
* may report that the imported keys, addresses or scripts exist but related transactions are still missing.
* The rescan is significantly faster if block filters are available (using startup option "-blockfilterindex=1").
*
*/
function importDescriptors(params) {
var bitcoind = params.bitcoind, methodParams = tslib_1.__rest(params, ["bitcoind"]);
return (0, rpc_request_1.default)({ method: 'importdescriptors', params: methodParams }, bitcoind);
}
exports.importDescriptors = importDescriptors;