@bsv/wallet-toolbox-mobile
Version:
Client only Wallet Storage
23 lines • 1.14 kB
TypeScript
import { Chain } from '../../../../sdk';
import { BlockHeader } from '../Api/BlockHeaderApi';
import { BulkIngestorBase } from './BulkIngestorBase';
import { HeightRange, HeightRanges } from '../util/HeightRange';
import { BulkIngestorWhatsOnChainOptions } from './BulkIngestorWhatsOnChainCdn';
import { StopListenerToken } from './WhatsOnChainIngestorWs';
import { WhatsOnChainServices } from './WhatsOnChainServices';
export declare class BulkIngestorWhatsOnChainWs extends BulkIngestorBase {
/**
*
* @param chain
* @param localCachePath defaults to './data/ingest_whatsonchain_headers'
* @returns
*/
static createBulkIngestorWhatsOnChainOptions(chain: Chain): BulkIngestorWhatsOnChainOptions;
idleWait: number;
woc: WhatsOnChainServices;
stopOldListenersToken: StopListenerToken;
constructor(options: BulkIngestorWhatsOnChainOptions);
getPresentHeight(): Promise<number | undefined>;
fetchHeaders(before: HeightRanges, fetchRange: HeightRange, bulkRange: HeightRange, priorLiveHeaders: BlockHeader[]): Promise<BlockHeader[]>;
}
//# sourceMappingURL=BulkIngestorWhatsOnChainWs.d.ts.map