UNPKG

@vafanassieff/bitcoin-cli-ts

Version:

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

16 lines 853 B
// Auto synced from github actions. Don't change this file import request from '../../rpc-request.js'; /** * getblock "blockhash" ( verbosity ) * * If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'. * If verbosity is 1, returns an Object with information about block 'hash'. * If verbosity is 2, returns an Object with information about block <hash> and information about each transaction. * If verbosity is 3, returns an Object with information about block <hash> and information about each transaction, including prevout information for inputs (only for unpruned blocks in the current best chain). * */ export function getBlock(params) { const { bitcoind, ...methodParams } = params; return request({ method: 'getblock', params: methodParams }, bitcoind); } //# sourceMappingURL=get-block.js.map