UNPKG

@vafanassieff/bitcoin-cli-ts

Version:

Auto-generated Bitcoin client library for bitcoind JSON-RPC API

21 lines (17 loc) 557 B
// Auto synced from github actions. Don't change this file import { Bitcoind } from '../../types.js' import request from '../../rpc-request.js' type AbortRescanParams = { bitcoind: Bitcoind } /** * abortrescan * * Stops current wallet rescan triggered by an RPC call, e.g. by an importprivkey call. * Note: Use "getwalletinfo" to query the scanning progress. * */ export function abortRescan(params: AbortRescanParams) { const { bitcoind, ...methodParams } = params return request({ method: 'abortrescan', params: methodParams }, bitcoind) }