MCPcopy Create free account
hub / github.com/bitpay/bitcore / getBlock

Method getBlock

packages/bitcore-node/src/rpc.ts:80–82  ·  view source on GitHub ↗
(hash: string, verbosity: number)

Source from the content-addressed store, hash-verified

78 }
79
80 getBlock(hash: string, verbosity: number) {
81 return this.asyncCall<RPCBlock<RPCTransaction>>('getblock', [hash, verbosity]);
82 }
83
84 getBlockHash(height: number) {
85 return this.asyncCall<string>('getblockhash', [height]);

Callers 1

getBlockByHeightMethod · 0.95

Calls 1

asyncCallMethod · 0.95

Tested by

no test coverage detected