MCPcopy Index your code
hub / github.com/bitpay/bitcore / block

Method block

packages/bitcore-node/src/rpc.ts:163–165  ·  view source on GitHub ↗
(hash: string)

Source from the content-addressed store, hash-verified

161 }
162
163 async block(hash: string): Promise<RPCBlock<string>> {
164 return (await this.call('getblock', [hash, 1])) as RPCBlock<string>;
165 }
166
167 async verbose_block(hash: string): Promise<RPCBlock<RPCTransaction>> {
168 return (await this.call('getblock', [hash, 2])) as RPCBlock<RPCTransaction>;

Callers

nothing calls this directly

Calls 1

callMethod · 0.95

Tested by

no test coverage detected