UNPKG

bitcoin-cli-ts

Version:

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

15 lines (14 loc) 521 B
// Auto synced from github actions. Don't change this file import { __rest } from "tslib"; import request from '../../rpc-request'; /** * getblockstats hash_or_height ( stats ) * * Compute per block statistics for a given window. All amounts are in satoshis. * It won't work for some heights with pruning. * */ export function getBlockStats(params) { var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]); return request({ method: 'getblockstats', params: methodParams }, bitcoind); }