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

Method getBlockHash

packages/bitcore-node/src/rpc.ts:84–86  ·  view source on GitHub ↗
(height: number)

Source from the content-addressed store, hash-verified

82 }
83
84 getBlockHash(height: number) {
85 return this.asyncCall<string>('getblockhash', [height]);
86 }
87
88 async getBlockByHeight(height: number, verbosity: number) {
89 const hash = await this.getBlockHash(height);

Callers 1

getBlockByHeightMethod · 0.95

Calls 1

asyncCallMethod · 0.95

Tested by

no test coverage detected