@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
14 lines • 447 B
JavaScript
// Auto synced from github actions. Don't change this file
import request from '../../rpc-request.js';
/**
* getblockcount
*
* Returns the height of the most-work fully-validated chain.
* The genesis block has height 0.
*
*/
export function getBlockCount(params) {
const { bitcoind, ...methodParams } = params;
return request({ method: 'getblockcount', params: methodParams }, bitcoind);
}
//# sourceMappingURL=get-block-count.js.map