@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
16 lines • 879 B
JavaScript
// Auto synced from github actions. Don't change this file
import request from '../../rpc-request.js';
/**
* 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) {
const { bitcoind, ...methodParams } = params;
return request({ method: 'importdescriptors', params: methodParams }, bitcoind);
}
//# sourceMappingURL=import-descriptors.js.map