Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CarStorerOptions

Hierarchy

Index

Properties

decoders?: 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

signal?: AbortSignal

A signal that can be used to abort the request.

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