UNPKG

bitcoin-cli-ts

Version:

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

15 lines (14 loc) 622 B
// Auto synced from github actions. Don't change this file import { __rest } from "tslib"; import request from '../../rpc-request'; /** * scanblocks "action" ( [scanobjects,...] start_height stop_height "filtertype" options ) * * Return relevant blockhashes for given descriptors (requires blockfilterindex). * This call may take several minutes. Make sure to use no RPC timeout (bitcoin-cli -rpcclienttimeout=0) * */ export function scanBlocks(params) { var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]); return request({ method: 'scanblocks', params: methodParams }, bitcoind); }