bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
14 lines (13 loc) • 460 B
JavaScript
// Auto synced from github actions. Don't change this file
import { __rest } from "tslib";
import request from '../../rpc-request';
/**
* getbestblockhash
*
* Returns the hash of the best (tip) block in the most-work fully-validated chain.
*
*/
export function getBestBlockHash(params) {
var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]);
return request({ method: 'getbestblockhash', params: methodParams }, bitcoind);
}