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