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