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

Method fetchBlocks

packages/node-core/src/api.service.ts:19–19  ·  view source on GitHub ↗
(heights: number[], ...args: any)

Source from the content-addressed store, hash-verified

17
18export interface IApi<A = any, SA = any, B extends Array<any> = any[]> {
19 fetchBlocks(heights: number[], ...args: any): Promise<B>;
20 safeApi(height: number): SA;
21 unsafeApi: A;
22 readonly networkMeta: NetworkMetadataPayload;

Callers 7

fetchBlocksFunction · 0.65
apiMethod · 0.65
fetchBlockMethod · 0.65
fetchBlocksMethod · 0.65
fetchBlocksMethod · 0.65
fetchChainBlockMethod · 0.65

Implementers 1

ApiPromiseConnectionpackages/node/src/indexer/apiPromise.c

Calls

no outgoing calls

Tested by

no test coverage detected