UNPKG

@near-lake/framework

Version:

JS Library to connect to the NEAR Lake S3 and stream the data

5 lines (4 loc) 392 B
import { S3Client } from '@aws-sdk/client-s3'; import { BlockHeight, StreamerMessage } from '@near-lake/primitives'; export declare function listBlocks(client: S3Client, bucketName: string, startAfter: BlockHeight, limit?: number): Promise<BlockHeight[]>; export declare function fetchStreamerMessage(client: S3Client, bucketName: string, blockHeight: BlockHeight): Promise<StreamerMessage>;