Skip to content

getNextPieceId

getNextPieceId(client, options): Promise<bigint>

Defined in: packages/synapse-core/src/pdp-verifier/get-next-piece-id.ts:29

Get the next piece ID for a data set

Total pieces ever added; does not decrease when pieces are removed

ParameterTypeDescription
clientClient<Transport, Chain>The client to use to get the next piece ID.
optionsOptionsTypegetNextPieceId.OptionsType

Promise<bigint>

The next piece ID for the data set getNextPieceId.OutputType

Errors getNextPieceId.ErrorType