OptionsType
OptionsType =
object
Defined in: packages/synapse-core/src/warm-storage/get-upload-costs.ts:17
Properties
Section titled “Properties”bufferEpochs?
Section titled “bufferEpochs?”
optionalbufferEpochs?:bigint
Defined in: packages/synapse-core/src/warm-storage/get-upload-costs.ts:48
Safety margin in epochs. Default: 5n
clientAddress
Section titled “clientAddress”clientAddress:
Address
Defined in: packages/synapse-core/src/warm-storage/get-upload-costs.ts:19
The payer address to check account state and approval for.
currentLifecycleReserveBalance?
Section titled “currentLifecycleReserveBalance?”
optionalcurrentLifecycleReserveBalance?:bigint
Defined in: packages/synapse-core/src/warm-storage/get-upload-costs.ts:36
Current lifecycle reserve balance. Required for an existing data set without dataSetId.
dataSetId?
Section titled “dataSetId?”
optionaldataSetId?:bigint
Defined in: packages/synapse-core/src/warm-storage/get-upload-costs.ts:28
ID of the existing data set that will receive the upload. When set, the
data set’s leaf count, lifecycle reserve balance, pending one-time
payments and PDP end epoch are read on-chain and the upload is priced as
an addition to it. Cannot be combined with isNewDataSet: true or with
the explicit existing-data-set fields below.
dataSetLeafCount?
Section titled “dataSetLeafCount?”
optionaldataSetLeafCount?:bigint
Defined in: packages/synapse-core/src/warm-storage/get-upload-costs.ts:34
Aggregate leaf count reported by PDP Verifier. Required for an existing data set without dataSetId.
extraRunwayEpochs?
Section titled “extraRunwayEpochs?”
optionalextraRunwayEpochs?:bigint
Defined in: packages/synapse-core/src/warm-storage/get-upload-costs.ts:46
Extra runway in epochs beyond the required lockup.
isNewDataSet?
Section titled “isNewDataSet?”
optionalisNewDataSet?:boolean
Defined in: packages/synapse-core/src/warm-storage/get-upload-costs.ts:30
Whether a new dataset will be created. Default: false when dataSetId is set, otherwise true
pdpEndEpoch?
Section titled “pdpEndEpoch?”
optionalpdpEndEpoch?:bigint
Defined in: packages/synapse-core/src/warm-storage/get-upload-costs.ts:40
Epoch at which the PDP payment rail ends. Required for an existing data set without dataSetId; must be 0n.
pendingOneTimePayments?
Section titled “pendingOneTimePayments?”
optionalpendingOneTimePayments?:bigint
Defined in: packages/synapse-core/src/warm-storage/get-upload-costs.ts:38
One-time operation fees already pending on an existing data set. Defaults to 0.
pieceSizes
Section titled “pieceSizes”pieceSizes: readonly
bigint[]
Defined in: packages/synapse-core/src/warm-storage/get-upload-costs.ts:43
Exact raw payload size of every piece planned for upload, in bytes.
withCDN?
Section titled “withCDN?”
optionalwithCDN?:boolean
Defined in: packages/synapse-core/src/warm-storage/get-upload-costs.ts:32
Whether CDN is enabled. Default: false