( api: ApiPromise, blockArray: number[], )
| 355 | } |
| 356 | |
| 357 | export async function fetchHeaderArray( |
| 358 | api: ApiPromise, |
| 359 | blockArray: number[], |
| 360 | ): Promise<SubstrateHeader[]> { |
| 361 | return Promise.all( |
| 362 | blockArray.map(async (height) => getHeaderByHeight(api, height)), |
| 363 | ); |
| 364 | } |
| 365 | |
| 366 | export async function fetchEventsRange( |
| 367 | api: ApiPromise, |
nothing calls this directly
no test coverage detected