bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
17 lines (16 loc) • 682 B
JavaScript
// Auto synced from github actions. Don't change this file
import { __rest } from "tslib";
import request from '../../rpc-request';
/**
* rescanblockchain ( start_height stop_height )
*
* Rescan the local blockchain for wallet related transactions.
* Note: Use "getwalletinfo" to query the scanning progress.
* The rescan is significantly faster when used on a descriptor wallet
* and block filters are available (using startup option "-blockfilterindex=1").
*
*/
export function rescanBlockchain(params) {
var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]);
return request({ method: 'rescanblockchain', params: methodParams }, bitcoind);
}