Skip to content

nooschain v0.1.0


nooschain / sync/block-sync-service / getBlockRange

Function: getBlockRange()

getBlockRange(database, fromHeight, toHeight, limit?): Promise<BlockDto[]>

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

Loads full blocks for a bounded inclusive height range.

Parameters

database

SyncDatabase

fromHeight

string | number | bigint

toHeight

string | number | bigint

limit?

number

Returns

Promise<BlockDto[]>

Audience-first NOOSChain documentation.