Skip to content

nooschain v0.1.0


nooschain / sync/block-sync-service / getBlockHeaders

Function: getBlockHeaders()

getBlockHeaders(database, fromHeight, toHeight, limit?): Promise<BlockHeaderDto[]>

Defined in: sync/block-sync-service.ts:273

Loads bounded block headers for an inclusive height range.

Parameters

database

SyncDatabase

fromHeight

string | number | bigint

toHeight

string | number | bigint

limit?

number

Returns

Promise<BlockHeaderDto[]>

Audience-first NOOSChain documentation.