# getActivePiecesByCursorCall

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

Defined in: [packages/synapse-core/src/pdp-verifier/get-active-pieces-by-cursor.ts:138](https://github.com/FilOzone/synapse-sdk/blob/e6fb33f57d00c5c775ea37a127e65446e2eee635/packages/synapse-core/src/pdp-verifier/get-active-pieces-by-cursor.ts#L138)

Create a call to the [getActivePiecesByCursor](/reference/filoz/synapse-core/pdp-verifier/functions/getactivepiecesbycursor/) contract function for
use with Viem's `multicall` or `readContract` functions.

This is a literal contract adapter: `startPieceId` and `limit` are required,
use their contract-facing names, and are passed through unchanged. Use
[parseGetActivePiecesByCursor](/reference/filoz/synapse-core/pdp-verifier/functions/parsegetactivepiecesbycursor/) to convert the raw contract output into
a normalized [getActivePiecesByCursor.OutputType](/reference/filoz/synapse-core/pdp-verifier/namespaces/getactivepiecesbycursor/type-aliases/outputtype/) page.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `options` | \{ `chain`: `Chain`; `contractAddress?`: `` `0x${string}` ``; `dataSetId`: `bigint`; `limit`: `bigint`; `startPieceId`: `bigint`; \} | [getActivePiecesByCursorCall.OptionsType](/reference/filoz/synapse-core/pdp-verifier/namespaces/getactivepiecesbycursorcall/type-aliases/optionstype/) |
| `options.chain` | `Chain` | The chain to use to make the call. |
| `options.contractAddress?` | `` `0x${string}` `` | PDP Verifier contract address override. |
| `options.dataSetId` | `bigint` | The ID of the data set to get active pieces for. |
| `options.limit` | `bigint` | - |
| `options.startPieceId` | `bigint` | - |

## Returns

`object`

The contract call parameters [getActivePiecesByCursorCall.OutputType](/reference/filoz/synapse-core/pdp-verifier/namespaces/getactivepiecesbycursorcall/type-aliases/outputtype/)

### abi

> **abi**: readonly \[\{ `inputs`: readonly \[\{ `internalType`: `"uint64"`; `name`: `"_initializerVersion"`; `type`: `"uint64"`; \}, \{ `internalType`: `"uint256"`; `name`: `"_challengeFinality"`; `type`: `"uint256"`; \}\]; `stateMutability`: `"nonpayable"`; `type`: `"constructor"`; \}, \{ `inputs`: readonly \[\]; `name`: `"FIL_CLEANUP_DEPOSIT"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"pure"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"INACTIVITY_WINDOW"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\]; `name`: `"LEGACY_ACTIVITY_EPOCH"`; `outputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `""`; `type`: `"uint256"`; \}\]; `stateMutability`: `"view"`; `type`: `"function"`; \}, \{ `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`: `"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 \[\{ `components`: readonly \[\{ `internalType`: `"address"`; `name`: `"nextImplementation"`; `type`: `"address"`; \}, \{ `internalType`: `"uint96"`; `name`: `"afterEpoch"`; `type`: `"uint96"`; \}\]; `internalType`: `"struct PDPVerifier.PlannedUpgrade"`; `name`: `"plannedUpgrade"`; `type`: `"tuple"`; \}\]; `name`: `"announcePlannedUpgrade"`; `outputs`: readonly \[\]; `stateMutability`: `"nonpayable"`; `type`: `"function"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"address"`; `name`: `"nextImplementation"`; `type`: `"address"`; \}, \{ `internalType`: `"uint96"`; `name`: `"delayEpochs"`; `type`: `"uint96"`; \}\]; `name`: `"announceUpgradePlan"`; `outputs`: readonly \[\]; `stateMutability`: `"nonpayable"`; `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`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"maxPieces"`; `type`: `"uint256"`; \}\]; `name`: `"cleanupPieces"`; `outputs`: readonly \[\{ `internalType`: `"bool"`; `name`: `"done"`; `type`: `"bool"`; \}\]; `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"`; \}, \{ `components`: readonly \[\{ `internalType`: `"bytes"`; `name`: `"data"`; `type`: `"bytes"`; \}\]; `internalType`: `"struct Cids.Cid"`; `name`: `"pieceCid"`; `type`: `"tuple"`; \}, \{ `internalType`: `"uint256"`; `name`: `"startPieceId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"limit"`; `type`: `"uint256"`; \}\]; `name`: `"findPieceIdsByCid"`; `outputs`: readonly \[\{ `internalType`: `"uint256[]"`; `name`: `"pieceIds"`; `type`: `"uint256[]"`; \}\]; `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 \[\{ `internalType`: `"uint256"`; `name`: `"setId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"startPieceId"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"limit"`; `type`: `"uint256"`; \}\]; `name`: `"getActivePiecesByCursor"`; `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 \[\]; `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`: `"nextUpgrade"`; `outputs`: readonly \[\{ `internalType`: `"address"`; `name`: `"nextImplementation"`; `type`: `"address"`; \}, \{ `internalType`: `"uint96"`; `name`: `"afterEpoch"`; `type`: `"uint96"`; \}\]; `stateMutability`: `"view"`; `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"`; \}, \{ `indexed`: `false`; `internalType`: `"uint256[]"`; `name`: `"pieceIds"`; `type`: `"uint256[]"`; \}\]; `name`: `"PiecesScheduledForRemoval"`; `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 \[\{ `components`: readonly \[\{ `internalType`: `"address"`; `name`: `"nextImplementation"`; `type`: `"address"`; \}, \{ `internalType`: `"uint96"`; `name`: `"afterEpoch"`; `type`: `"uint96"`; \}\]; `indexed`: `false`; `internalType`: `"struct PDPVerifier.PlannedUpgrade"`; `name`: `"plannedUpgrade"`; `type`: `"tuple"`; \}\]; `name`: `"UpgradeAnnounced"`; `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 \[\]; `name`: `"CleanupDepositRequired"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\]; `name`: `"DataSetAlreadyInCleanup"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\]; `name`: `"DataSetNotFound"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\]; `name`: `"DataSetNotInCleanupMode"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\]; `name`: `"DataSetNotLive"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\]; `name`: `"DepositTransferFailed"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"address"`; `name`: `"implementation"`; `type`: `"address"`; \}\]; `name`: `"ERC1967InvalidImplementation"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\]; `name`: `"ERC1967NonPayable"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"uint256"`; `name`: `"epochs"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"maxDelay"`; `type`: `"uint256"`; \}\]; `name`: `"ExcessiveChallengeDelay"`; `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 \[\{ `internalType`: `"uint256"`; `name`: `"epochs"`; `type`: `"uint256"`; \}, \{ `internalType`: `"uint256"`; `name`: `"minDelay"`; `type`: `"uint256"`; \}\]; `name`: `"InsufficientChallengeDelay"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\{ `internalType`: `"address"`; `name`: `"implementation"`; `type`: `"address"`; \}\]; `name`: `"InvalidImplementation"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\]; `name`: `"InvalidInitialization"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\]; `name`: `"MaxPiecesMustBePositive"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\]; `name`: `"NotInitializing"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\]; `name`: `"OnlyStorageProviderCanCleanupPieces"`; `type`: `"error"`; \}, \{ `inputs`: readonly \[\]; `name`: `"OnlyStorageProviderCanDelete"`; `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`: `"TransferFailed"`; `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`, `bigint`, `bigint`\]

### functionName

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

## Example

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

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

const result = await readContract(client, getActivePiecesByCursorCall({
  chain: calibration,
  dataSetId: 1n,
  startPieceId: 0n,
  limit: 100n,
}))
const page = parseGetActivePiecesByCursor(result)
console.log(page.items, page.nextCursor)
```

## Throws

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