# estimateAddPiecesCalldataSize

> **estimateAddPiecesCalldataSize**(`options`): `number`

Defined in: [packages/synapse-core/src/utils/add-pieces-fits.ts:284](https://github.com/FilOzone/synapse-sdk/blob/5989c4b03ed2fe4cf8b1ef29efe1d4ff1ad4c7bc/packages/synapse-core/src/utils/add-pieces-fits.ts#L284)

Estimated on-chain calldata size in bytes for the given piece list.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `options` | [`LimiterOptions`](/reference/filoz/synapse-core/utils/type-aliases/limiteroptions/) | [estimateAddPiecesCalldataSize.OptionsType](/reference/filoz/synapse-core/utils/namespaces/estimateaddpiecescalldatasize/type-aliases/optionstype/) |

## Returns

`number`

Calldata size in bytes [estimateAddPiecesCalldataSize.OutputType](/reference/filoz/synapse-core/utils/namespaces/estimateaddpiecescalldatasize/type-aliases/outputtype/)

## Throws

Errors [estimateAddPiecesCalldataSize.ErrorType](/reference/filoz/synapse-core/utils/namespaces/estimateaddpiecescalldatasize/type-aliases/errortype/)