Skip to content

getActivePieceCount

getActivePieceCount(client, options): Promise<bigint>

Defined in: packages/synapse-core/src/pdp-verifier/get-active-piece-count.ts:27

Get the active piece count for a data set (non-zero leaf count)

ParameterTypeDescription
clientClient<Transport, Chain>The client to use to get the active piece count.
optionsOptionsTypegetActivePieceCount.OptionsType

Promise<bigint>

The active piece count for the data set getActivePieceCount.OutputType

Errors getActivePieceCount.ErrorType