# getActivePieceCountCall

> **getActivePieceCountCall**(`options`): `object`

Defined in: [packages/synapse-core/src/pdp-verifier/get-active-piece-count.ts:93](https://github.com/FilOzone/synapse-sdk/blob/7fdc04df4e3c52366a9f0cd55da4c05e20b2ed82/packages/synapse-core/src/pdp-verifier/get-active-piece-count.ts#L93)

Create a call to the getActivePieceCount function

This function is used to create a call to the getActivePieceCount function for use with the multicall or readContract function.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `options` | \{ `chain`: `Chain`; `contractAddress?`: `` `0x${string}` ``; `dataSetId`: `bigint`; \} | [getActivePieceCountCall.OptionsType](/reference/filoz/synapse-core/pdp-verifier/namespaces/getactivepiececountcall/type-aliases/optionstype/) |
| `options.chain` | `Chain` | The chain to use to make the call. |
| `options.contractAddress?` | `` `0x${string}` `` | PDP Verifier contract address. If not provided, the default is the PDP Verifier contract address for the chain. |
| `options.dataSetId` | `bigint` | The ID of the data set to get the active piece count for. |

## Returns

`object`

The call to the getActivePieceCount function [getActivePieceCountCall.OutputType](/reference/filoz/synapse-core/pdp-verifier/namespaces/getactivepiececountcall/type-aliases/outputtype/)

### abi

> **abi**: readonly \[\{ `inputs`: readonly \[\]; `stateMutability`: `"nonpayable"`; `type`: `"constructor"`; \}, \{ `inputs`: readonly \[\]; `name`: `"MAX_ENQUEUED_REMOVALS"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"MAX_PIECE_SIZE_LOG2"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"NO_CHALLENGE_SCHEDULED"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"NO_PROVEN_EPOCH"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"UPGRADE_INTERFACE_VERSION"`; `outputs`: readonly \[\{ `internalType`: `"string"`; `name`: `""`; `type`: `"string"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"VERSION"`; `outputs`: readonly \[\{ `internalType`: `"string"`; `name`: `""`; `type`: `"string"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"address"`; `name`: `"listenerAddr"`; `type`: `"address"`; \}, \{ `components`: readonly \[\{ `internalType`: `"bytes"`; `name`: `"data"`; `type`: `"bytes"`; \}\]; `internalType`: `"struct Cids.Cid[]"`; `name`: `"pieceData"`; `type`: `"tuple[]"`; \}, \{ `internalType`: `"bytes"`; `name`: `"extraData"`; `type`: `"bytes"`; \}\]; `name`: `"addPieces"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"payable"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}\]; `name`: `"calculateProofFee"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"proofSize"`; `type`: `"uint256"`; \}\]; `name`: `"calculateProofFeeForSize"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"bytes"`; `name`: `"extraData"`; `type`: `"bytes"`; \}\]; `name`: `"claimDataSetStorageProvider"`; `outputs`: readonly \[\]; `stateMutability`: `"nonpayable"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"address"`; `name`: `"listenerAddr"`; `type`: `"address"`; \}, \{ `internalType`: `"bytes"`; `name`: `"extraData"`; `type`: `"bytes"`; \}\]; `name`: `"createDataSet"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"payable"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}\]; `name`: `"dataSetLive"`; `outputs`: readonly \[\{ `internalType`: `"bool"`; `name`: `""`; `type`: `"bool"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"bytes"`; `name`: `"extraData"`; `type`: `"bytes"`; \}\]; `name`: `"deleteDataSet"`; `outputs`: readonly \[\]; `stateMutability`: `"nonpayable"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"feeEffectiveTime"`; `outputs`: readonly \[\{ `internalType`: `"uint64"`; `name`: `""`; `type`: `"uint64"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"feePerTiB"`; `outputs`: readonly \[\{ `internalType`: `"uint96"`; `name`: `""`; `type`: `"uint96"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256[]"`; `name`: `"leafIndexs"`; `type`: `"uint256[]"`; \}\]; `name`: `"findPieceIds"`; `outputs`: readonly \[\{ `components`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"pieceId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"offset"`; `type`: `"uint256"`; \}\]; `internalType`: `"struct IPDPTypes.PieceIdAndOffset[]"`; `name`: `""`; `type`: `"tuple[]"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}\]; `name`: `"getActivePieceCount"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"activeCount"`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"offset"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"limit"`; `type`: `"uint256"`; \}\]; `name`: `"getActivePieces"`; `outputs`: readonly \[\{ `components`: readonly \[\{ `internalType`: `"bytes"`; `name`: `"data"`; `type`: `"bytes"`; \}\]; `internalType`: `"struct Cids.Cid[]"`; `name`: `"pieces"`; `type`: `"tuple[]"`; \}, \{ `internalType`: `"uint256[]"`; `name`: `"pieceIds"`; `type`: `"uint256[]"`; \}, \{ `internalType`: `"bool"`; `name`: `"hasMore"`; `type`: `"bool"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"getChallengeFinality"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}\]; `name`: `"getChallengeRange"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}\]; `name`: `"getDataSetLastProvenEpoch"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}\]; `name`: `"getDataSetLeafCount"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}\]; `name`: `"getDataSetListener"`; `outputs`: readonly \[\{ `internalType`: `"address"`; `name`: `""`; `type`: `"address"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}\]; `name`: `"getDataSetStorageProvider"`; `outputs`: readonly \[\{ `internalType`: `"address"`; `name`: `""`; `type`: `"address"`; \}, \{ `internalType`: `"address"`; `name`: `""`; `type`: `"address"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}\]; `name`: `"getNextChallengeEpoch"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"getNextDataSetId"`; `outputs`: readonly \[\{ `internalType`: `"uint64"`; `name`: `""`; `type`: `"uint64"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}\]; `name`: `"getNextPieceId"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"pieceId"`; `type`: `"uint256"`; \}\]; `name`: `"getPieceCid"`; `outputs`: readonly \[\{ `components`: readonly \[\{ `internalType`: `"bytes"`; `name`: `"data"`; `type`: `"bytes"`; \}\]; `internalType`: `"struct Cids.Cid"`; `name`: `""`; `type`: `"tuple"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"pieceId"`; `type`: `"uint256"`; \}\]; `name`: `"getPieceLeafCount"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"epoch"`; `type`: `"uint256"`; \}\]; `name`: `"getRandomness"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}\]; `name`: `"getScheduledRemovals"`; `outputs`: readonly \[\{ `internalType`: `"uint256[]"`; `name`: `""`; `type`: `"uint256[]"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"_challengeFinality"`; `type`: `"uint256"`; \}\]; `name`: `"initialize"`; `outputs`: readonly \[\]; `stateMutability`: `"nonpayable"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"migrate"`; `outputs`: readonly \[\]; `stateMutability`: `"nonpayable"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"challengeEpoch"`; `type`: `"uint256"`; \}, \{ `internalType`: `"bytes"`; `name`: `"extraData"`; `type`: `"bytes"`; \}\]; `name`: `"nextProvingPeriod"`; `outputs`: readonly \[\]; `stateMutability`: `"nonpayable"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"owner"`; `outputs`: readonly \[\{ `internalType`: `"address"`; `name`: `""`; `type`: `"address"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"pieceId"`; `type`: `"uint256"`; \}\]; `name`: `"pieceChallengable"`; `outputs`: readonly \[\{ `internalType`: `"bool"`; `name`: `""`; `type`: `"bool"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"pieceId"`; `type`: `"uint256"`; \}\]; `name`: `"pieceLive"`; `outputs`: readonly \[\{ `internalType`: `"bool"`; `name`: `""`; `type`: `"bool"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"address"`; `name`: `"newStorageProvider"`; `type`: `"address"`; \}\]; `name`: `"proposeDataSetStorageProvider"`; `outputs`: readonly \[\]; `stateMutability`: `"nonpayable"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"proposedFeePerTiB"`; `outputs`: readonly \[\{ `internalType`: `"uint96"`; `name`: `""`; `type`: `"uint96"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `components`: readonly \[\{ `internalType`: `"bytes32"`; `name`: `"leaf"`; `type`: `"bytes32"`; \}, \{ `internalType`: `"bytes32[]"`; `name`: `"proof"`; `type`: `"bytes32[]"`; \}\]; `internalType`: `"struct IPDPTypes.Proof[]"`; `name`: `"proofs"`; `type`: `"tuple[]"`; \}\]; `name`: `"provePossession"`; `outputs`: readonly \[\]; `stateMutability`: `"payable"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"proxiableUUID"`; `outputs`: readonly \[\{ `internalType`: `"bytes32"`; `name`: `""`; `type`: `"bytes32"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"renounceOwnership"`; `outputs`: readonly \[\]; `stateMutability`: `"nonpayable"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256[]"`; `name`: `"pieceIds"`; `type`: `"uint256[]"`; \}, \{ `internalType`: `"bytes"`; `name`: `"extraData"`; `type`: `"bytes"`; \}\]; `name`: `"schedulePieceDeletions"`; `outputs`: readonly \[\]; `stateMutability`: `"nonpayable"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"address"`; `name`: `"newOwner"`; `type`: `"address"`; \}\]; `name`: `"transferOwnership"`; `outputs`: readonly \[\]; `stateMutability`: `"nonpayable"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"newFeePerTiB"`; `type`: `"uint256"`; \}\]; `name`: `"updateProofFee"`; `outputs`: readonly \[\]; `stateMutability`: `"nonpayable"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"address"`; `name`: `"newImplementation"`; `type`: `"address"`; \}, \{ `internalType`: `"bytes"`; `name`: `"data"`; `type`: `"bytes"`; \}\]; `name`: `"upgradeToAndCall"`; `outputs`: readonly \[\]; `stateMutability`: `"payable"`; `type`: `"function"`; \}, \{ `anonymous`: `false`; `inputs`: readonly \[\{ `indexed`: `false`; `internalType`: `"string"`; `name`: `"version"`; `type`: `"string"`; \}, \{ `indexed`: `false`; `internalType`: `"address"`; `name`: `"implementation"`; `type`: `"address"`; \}\]; `name`: `"ContractUpgraded"`; `type`: `"event"`; \}, \{ `anonymous`: `false`; `inputs`: readonly \[\{ `indexed`: `true`; `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `indexed`: `true`; `internalType`: `"address"`; `name`: `"storageProvider"`; `type`: `"address"`; \}\]; `name`: `"DataSetCreated"`; `type`: `"event"`; \}, \{ `anonymous`: `false`; `inputs`: readonly \[\{ `indexed`: `true`; `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `indexed`: `false`; `internalType`: `"uint256"`; `name`: `"deletedLeafCount"`; `type`: `"uint256"`; \}\]; `name`: `"DataSetDeleted"`; `type`: `"event"`; \}, \{ `anonymous`: `false`; `inputs`: readonly \[\{ `indexed`: `true`; `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}\]; `name`: `"DataSetEmpty"`; `type`: `"event"`; \}, \{ `anonymous`: `false`; `inputs`: readonly \[\{ `indexed`: `false`; `internalType`: `"uint256"`; `name`: `"currentFee"`; `type`: `"uint256"`; \}, \{ `indexed`: `false`; `internalType`: `"uint256"`; `name`: `"newFee"`; `type`: `"uint256"`; \}, \{ `indexed`: `false`; `internalType`: `"uint256"`; `name`: `"effectiveTime"`; `type`: `"uint256"`; \}\]; `name`: `"FeeUpdateProposed"`; `type`: `"event"`; \}, \{ `anonymous`: `false`; `inputs`: readonly \[\{ `indexed`: `false`; `internalType`: `"uint64"`; `name`: `"version"`; `type`: `"uint64"`; \}\]; `name`: `"Initialized"`; `type`: `"event"`; \}, \{ `anonymous`: `false`; `inputs`: readonly \[\{ `indexed`: `true`; `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `indexed`: `false`; `internalType`: `"uint256"`; `name`: `"challengeEpoch"`; `type`: `"uint256"`; \}, \{ `indexed`: `false`; `internalType`: `"uint256"`; `name`: `"leafCount"`; `type`: `"uint256"`; \}\]; `name`: `"NextProvingPeriod"`; `type`: `"event"`; \}, \{ `anonymous`: `false`; `inputs`: readonly \[\{ `indexed`: `true`; `internalType`: `"address"`; `name`: `"previousOwner"`; `type`: `"address"`; \}, \{ `indexed`: `true`; `internalType`: `"address"`; `name`: `"newOwner"`; `type`: `"address"`; \}\]; `name`: `"OwnershipTransferred"`; `type`: `"event"`; \}, \{ `anonymous`: `false`; `inputs`: readonly \[\{ `indexed`: `true`; `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `indexed`: `false`; `internalType`: `"uint256[]"`; `name`: `"pieceIds"`; `type`: `"uint256[]"`; \}, \{ `components`: readonly \[\{ `internalType`: `"bytes"`; `name`: `"data"`; `type`: `"bytes"`; \}\]; `indexed`: `false`; `internalType`: `"struct Cids.Cid[]"`; `name`: `"pieceCids"`; `type`: `"tuple[]"`; \}\]; `name`: `"PiecesAdded"`; `type`: `"event"`; \}, \{ `anonymous`: `false`; `inputs`: readonly \[\{ `indexed`: `true`; `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `indexed`: `false`; `internalType`: `"uint256[]"`; `name`: `"pieceIds"`; `type`: `"uint256[]"`; \}\]; `name`: `"PiecesRemoved"`; `type`: `"event"`; \}, \{ `anonymous`: `false`; `inputs`: readonly \[\{ `indexed`: `true`; `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `components`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"pieceId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"offset"`; `type`: `"uint256"`; \}\]; `indexed`: `false`; `internalType`: `"struct IPDPTypes.PieceIdAndOffset[]"`; `name`: `"challenges"`; `type`: `"tuple[]"`; \}\]; `name`: `"PossessionProven"`; `type`: `"event"`; \}, \{ `anonymous`: `false`; `inputs`: readonly \[\{ `indexed`: `true`; `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `indexed`: `false`; `internalType`: `"uint256"`; `name`: `"fee"`; `type`: `"uint256"`; \}\]; `name`: `"ProofFeePaid"`; `type`: `"event"`; \}, \{ `anonymous`: `false`; `inputs`: readonly \[\{ `indexed`: `true`; `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `indexed`: `true`; `internalType`: `"address"`; `name`: `"oldStorageProvider"`; `type`: `"address"`; \}, \{ `indexed`: `true`; `internalType`: `"address"`; `name`: `"newStorageProvider"`; `type`: `"address"`; \}\]; `name`: `"StorageProviderChanged"`; `type`: `"event"`; \}, \{ `anonymous`: `false`; `inputs`: readonly \[\{ `indexed`: `true`; `internalType`: `"address"`; `name`: `"implementation"`; `type`: `"address"`; \}\]; `name`: `"Upgraded"`; `type`: `"event"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"address"`; `name`: `"target"`; `type`: `"address"`; \}\]; `name`: `"AddressEmptyCode"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"address"`; `name`: `"implementation"`; `type`: `"address"`; \}\]; `name`: `"ERC1967InvalidImplementation"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\]; `name`: `"ERC1967NonPayable"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\]; `name`: `"FailedCall"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"idx"`; `type`: `"uint256"`; \}, \{ `internalType`: `"string"`; `name`: `"msg"`; `type`: `"string"`; \}\]; `name`: `"IndexedError"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\]; `name`: `"InvalidInitialization"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\]; `name`: `"NotInitializing"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"address"`; `name`: `"owner"`; `type`: `"address"`; \}\]; `name`: `"OwnableInvalidOwner"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"address"`; `name`: `"account"`; `type`: `"address"`; \}\]; `name`: `"OwnableUnauthorizedAccount"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\]; `name`: `"UUPSUnauthorizedCallContext"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"bytes32"`; `name`: `"slot"`; `type`: `"bytes32"`; \}\]; `name`: `"UUPSUnsupportedProxiableUUID"`; `type`: `"error"`; \}\] = `chain.contracts.pdp.abi`

### address

> **address**: `` `0x${string}` ``

### args

> **args**: \[`bigint`\]

### functionName

> **functionName**: `"getActivePieceCount"` = `'getActivePieceCount'`

## Example

```ts
import { getActivePieceCountCall } from '@filoz/synapse-core/pdp-verifier'
import { calibration } from '@filoz/synapse-core/chains'
import { createPublicClient, http } from 'viem'
import { multicall } from 'viem/actions'

const client = createPublicClient({
  chain: calibration,
  transport: http(),
})

const results = await multicall(client, {
  contracts: [
    getActivePieceCountCall({ chain: calibration, dataSetId: 1n }),
    getActivePieceCountCall({ chain: calibration, dataSetId: 2n }),
  ],
})
```

## Throws

Errors [getActivePieceCountCall.ErrorType](/reference/filoz/synapse-core/pdp-verifier/namespaces/getactivepiececountcall/type-aliases/errortype/)