bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
17 lines (16 loc) • 893 B
JavaScript
// Auto synced from github actions. Don't change this file
import { __rest } from "tslib";
import request from '../../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").
*
*/
export function importDescriptors(params) {
var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]);
return request({ method: 'importdescriptors', params: methodParams }, bitcoind);
}