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

Method getBlockByHeight

packages/bitcore-node/src/rpc.ts:88–91  ·  view source on GitHub ↗
(height: number, verbosity: number)

Source from the content-addressed store, hash-verified

86 }
87
88 async getBlockByHeight(height: number, verbosity: number) {
89 const hash = await this.getBlockHash(height);
90 return this.getBlock(hash, verbosity);
91 }
92
93 getTransaction(txid: string) {
94 return this.asyncCall<RPCTransaction>('getrawtransaction', [txid, true]);

Callers

nothing calls this directly

Calls 2

getBlockHashMethod · 0.95
getBlockMethod · 0.95

Tested by

no test coverage detected