Skip to content

nooschain v0.1.0


nooschain / snapshots/snapshot-stream / exportSnapshotToFileStreaming

Function: exportSnapshotToFileStreaming()

exportSnapshotToFileStreaming(db, options): Promise<{ height: string; output: string; snapshotHash: string; stateRoot: string; }>

Defined in: snapshots/snapshot-stream.ts:401

Exports a single valid JSON snapshot document using streaming file I/O. Progress callbacks are intentionally text-only so JSON stdout can stay clean.

Parameters

db

Kysely<Database>

options

exportMode?

SnapshotExportMode

height?

number

onProgress?

(message) => void

outputPath

string

Returns

Promise<{ height: string; output: string; snapshotHash: string; stateRoot: string; }>

Audience-first NOOSChain documentation.