calculateUploadFees
calculateUploadFees(
params):OutputType
Defined in: packages/synapse-core/src/warm-storage/calculate-upload-fees.ts:34
Compute the one-time fees an upload incurs.
Scope is intentionally limited to upload-time fees: create-data-set (new datasets only) and add-pieces. Schedule-removals, terminate, and delete are post-upload lifecycle operations and are not part of an upload cost preview.
The number of addPieces operations is derived from pieceCount and the
MAX_ADD_PIECES_BATCH_SIZE batch limit: a single addPieces call cannot
exceed the limit, so pieceCount pieces span ceil(pieceCount / limit)
calls, each charged the base fee.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
params | ParamsType | calculateUploadFees.ParamsType |