MCPcopy Create free account
hub / github.com/subquery/subql / getHeaderForHash

Method getHeaderForHash

packages/node/src/blockchain.service.ts:158–160  ·  view source on GitHub ↗
(hash: string)

Source from the content-addressed store, hash-verified

156 // TODO can this decorator be in unfinalizedBlocks Service?
157 @mainThreadOnly()
158 async getHeaderForHash(hash: string): Promise<Header> {
159 return getHeaderForHash(this.apiService.unsafeApi, hash);
160 }
161
162 // TODO can this decorator be in unfinalizedBlocks Service?
163 @mainThreadOnly()

Callers 2

getFinalizedHeaderMethod · 0.95
getHeaderForHeightMethod · 0.95

Calls 1

getHeaderForHashFunction · 0.90

Tested by

no test coverage detected