RAILGUN Reloaded
    Preparing search index...

    Inputs for RailgunClient.scan().

    type ScanParams = {
        chainId: number;
        dataSource?: SourceAggregator<EVMBlock>;
        startBlock?: bigint;
        endBlock?: bigint;
        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.

    onProgress?: (progress: SyncProgress) => void

    Fired per batch with phase: 'scan'. Synchronous; throwing aborts the run.