UNPKG

@vafanassieff/bitcoin-cli-ts

Version:

Auto-generated Bitcoin client library for bitcoind JSON-RPC API

22 lines (18 loc) 527 B
// Auto synced from github actions. Don't change this file import { Bitcoind } from '../../types.js' import request from '../../rpc-request.js' type GetBlockHashParams = { bitcoind: Bitcoind /* The height index */ height: number } /** * getblockhash height * * Returns hash of block in best-block-chain at height provided. * */ export function getBlockHash(params: GetBlockHashParams) { const { bitcoind, ...methodParams } = params return request({ method: 'getblockhash', params: methodParams }, bitcoind) }