Helia
    Preparing search index...

    Interface ExtendedStatOptions

    Options to pass to the stat command

    interface ExtendedStatOptions {
        extended: true;
        filter?: Filter;
        offline?: boolean;
        onProgress?: (evt: GetEvents) => void;
        path?: string;
        providers?: (PeerId | Multiaddr | Multiaddr[])[];
        signal?: AbortSignal;
    }

    Hierarchy (View Summary)

    Index

    Properties

    extended: true

    If true, traverse the whole DAG to return additional stats. If all data is not in the local blockstore, this may involve fetching them from the network.

    filter?: Filter

    By default CIDs are deduplicated using a ScalableCuckooFilter - if you wish to use a different filter, pass it here.

    offline?: boolean

    If true, do not perform any network operations and throw if blocks are missing from the local store.

    false
    
    onProgress?: (evt: GetEvents) => void
    path?: string

    An optional path to allow getting stats of paths inside directories

    providers?: (PeerId | Multiaddr | Multiaddr[])[]

    An optional list of peers known to host at least the root block of the DAG that will be fetched.

    If this list is omitted, or if the peers cannot supply the root or any child blocks, a findProviders routing query will be run to find peers that can supply the blocks.

    signal?: AbortSignal