RAILGUN Reloaded
    Preparing search index...

    Inputs for RailgunClient.sync(). Combines ScanParams with the wallet decryption knobs from DecryptParams minus network.

    type SyncParams = {
        chainId: number;
        dataSource?: SourceAggregator<EVMBlock>;
        startBlock?: bigint;
        endBlock?: bigint;
        fromBlock?: bigint;
        toBlock?: bigint;
        batchSize?: bigint;
        refreshPoi?: boolean;
        onProgress?: (progress: SyncProgress) => void;
    }
    Index
    chainId: number

    Chain ID of a configured deployment.

    Source of blocks. The caller owns it; the client never destroys it. A source must serve one scan at a time. Defaults to the chain's indexer in INDEXER_URLS, reached through the client's fetch. The client destroys that default source when the scan ends.

    startBlock?: bigint

    Inclusive chain ingestion floor on empty storage. Values below the network deployment block are rejected. Ignored when a cursor exists. The floor must be at or below the first commitment of the chain: the deployment block or a snapshot boundary. A higher floor makes the scan throw CommitmentPositionError, because the local tree starts empty.

    endBlock?: bigint

    Inclusive ceiling on chain ingestion.

    fromBlock?: bigint

    Override only the wallet decryption cursor; defaults to scanState + 1.

    toBlock?: bigint

    Stop point for decryption; defaults to chain storage's tip.

    batchSize?: bigint

    First decryption block-range chunk size; later chunks grow or shrink toward about 5,000 commitments. Defaults to 100_000.

    refreshPoi?: boolean

    Refresh PPOI status after decryption on PPOI networks. Defaults to true.

    onProgress?: (progress: SyncProgress) => void

    Fired per batch from all sync phases. phase distinguishes the source.