Parameters
| Name | Type | Description |
|---|---|---|
params.chainId | number | The chain ID (e.g., 1 for Ethereum, 137 for Polygon) |
params.collectionAddress | string | The collection contract address |
params.config | SdkConfig | Optional SDK configuration parameters |
params.side | OrderSide | The order side to count (listing or offer) |
params.filter | OrdersFilter | Optional filter for the orders |
params.query | StandardQueryOptions | Optional React Query configuration (from TanStack Query) |
Returns
A query result containing an object with acount property representing the number of filtered primary sale items in a collection.