Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/api-derive/chain/subscribeFinalizedHeads.ts>_getHeaderRange

Package publishing for deno.land/x/polkadot
Go to Latest
function _getHeaderRange
import { _getHeaderRange } from "https://deno.land/x/polkadot@0.2.16/api-derive/chain/subscribeFinalizedHeads.ts";

Returns a header range from startHash to to (not including) endHash, i.e. lastBlock.parentHash === endHash

Parameters

instanceId: string

Returns

(
startHash: Hash,
endHash: Hash,
prev?: Header[],
) => Observable<Header[]>