Shard a set of blocks into a set of CAR files. The last block is assumed to be the DAG root and becomes the CAR root CID for the last CAR output.

Hierarchy

  • TransformStream
    • ShardingStream

Constructors

Constructors

  • Parameters

    • Optional options: {
          shardSize: undefined | number;
      } = {}
      • shardSize: undefined | number

        The target shard size. Actual size of CAR output may be bigger due to CAR header and block encoding data.

    Returns ShardingStream

Generated using TypeDoc