# estimateOnboardingCost

> **estimateOnboardingCost**(`params`): [`OutputType`](/reference/filoz/synapse-core/warm-storage/namespaces/estimateonboardingcost/type-aliases/outputtype/)

Defined in: [packages/synapse-core/src/warm-storage/estimate-onboarding-cost.ts:57](https://github.com/FilOzone/synapse-sdk/blob/a3c661408bf8b3cb47684059a425c07b9ae50a64/packages/synapse-core/src/warm-storage/estimate-onboarding-cost.ts#L57)

Estimate what it costs to bring data onto FWSS, without a wallet or account state.

Every copy is a new data set, so each copy pays the create-data-set fee and
the add-pieces fees for all of its pieces. Unlike [calculateUploadFees](/reference/filoz/synapse-core/warm-storage/namespaces/calculateuploadfees/toc/),
this takes a piece count rather than a list of sizes, so it scales to
payloads with millions of pieces, and it can model batched add-pieces calls.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `params` | [`ParamsType`](/reference/filoz/synapse-core/warm-storage/namespaces/estimateonboardingcost/type-aliases/paramstype/) | [estimateOnboardingCost.ParamsType](/reference/filoz/synapse-core/warm-storage/namespaces/estimateonboardingcost/type-aliases/paramstype/) |

## Returns

[`OutputType`](/reference/filoz/synapse-core/warm-storage/namespaces/estimateonboardingcost/type-aliases/outputtype/)

[estimateOnboardingCost.OutputType](/reference/filoz/synapse-core/warm-storage/namespaces/estimateonboardingcost/type-aliases/outputtype/)

## Throws

ValidationError when sizes or counts are not positive