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