bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
15 lines (14 loc) • 580 B
JavaScript
// Auto synced from github actions. Don't change this file
import { __rest } from "tslib";
import request from '../../rpc-request';
/**
* getblockheader "blockhash" ( verbose )
*
* If verbose is false, returns a string that is serialized, hex-encoded data for blockheader 'hash'.
* If verbose is true, returns an Object with information about blockheader 'hash'.
*
*/
export function getBlockHeader(params) {
var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]);
return request({ method: 'getblockheader', params: methodParams }, bitcoind);
}