RAILGUN Reloaded
    Preparing search index...

    Type Alias SyncProgressEvent

    Fired per batch as a run progresses.

    type SyncProgressEvent = {
        walletId?: string;
        chainId: number;
        phase: "scan" | "decrypt";
        fromBlock: bigint;
        toBlock: bigint;
        currentBlock: bigint;
        blocksScanned: bigint;
        notesAdded: number;
        notesSpent: number;
        timestamp: Date;
    }
    Index
    walletId?: string

    Wallet of the run. Absent in the scan phase.

    chainId: number

    Chain ID of the network that the run syncs.

    phase: "scan" | "decrypt"

    Inner phase that finished the batch. A sync run reports its scan and decrypt batches.

    fromBlock: bigint

    First block of the run, inclusive.

    toBlock: bigint

    Last block of the run, inclusive. A scan run with no endBlock reports the last block of the current batch.

    currentBlock: bigint

    Last block of the batch that just finished.

    blocksScanned: bigint

    Number of blocks from fromBlock through currentBlock, inclusive.

    notesAdded: number

    Running total of notes that the run stored for the wallet. Always 0 in the scan phase.

    notesSpent: number

    Running total of wallet notes that the run marked spent. Always 0 in the scan phase.

    timestamp: Date

    Time the batch finished.