Skip to main content

Class: ShardingStream

@web3-storage/upload-client.ShardingStream

Shard a set of blocks into a set of CAR files. By default the last block received is assumed to be the DAG root and becomes the CAR root CID for the last CAR output. Set the rootCID option to override.

Hierarchy

  • TransformStream

    ShardingStream

Constructors

constructor

new ShardingStream(options?)

Parameters

NameType
options?ShardingOptions

Overrides

TransformStream.constructor

Defined in

packages/upload-client/src/sharding.js:19