Options
All
  • Public
  • Public/Protected
  • All
Menu

Options to pass through to NFTStorage.storeCar.

Hierarchy

  • CarStorerOptions

Index

Properties

decoders?: <internal>.BlockDecoder<any, any>[]

Additional IPLD block decoders. Used to interpret the data in the CAR file and split it into multiple chunks. Note these are only required if the CAR file was not encoded using the default encoders: dag-pb, dag-cbor and raw.

maxRetries?: number

Maximum times to retry a failed upload. Default: 5

Methods

  • onStoredChunk(size: number): void
  • Callback called after each chunk of data has been uploaded. By default, data is split into chunks of around 10MB. It is passed the actual chunk size in bytes.

    Parameters

    • size: number

    Returns void

Generated using TypeDoc