helia
    Preparing search index...

    Interface TraversalStrategy

    Interface for different traversal strategies.

    While traversing the DAG, it will yield blocks that it has traversed.

    interface TraversalStrategy {
        traverse(
            root: CID,
            blockstore: Blockstore,
            getCodec: CodecLoader,
            options?: AbortOptions,
        ): AsyncGenerator<
            BlockView<unknown, number, number, 0 | 1>,
            void,
            undefined,
        >;
    }

    Implemented by

    Index

    Methods

    Methods