Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
The useGetCountOfPrimarySaleItems hook returns the number of filtered primary sale items in a collection
params.chainId
number
params.collectionAddress
string
params.config
SdkConfig
params.side
OrderSide
params.filter
OrdersFilter
params.query
StandardQueryOptions
count
import { useGetCountOfPrimarySaleItems } from "@0xsequence/marketplace-sdk/react";
const { data: countOfPrimarySalesItems } = useGetCountOfPrimarySaleItems({ chainId: 1, primarySaleContractAddress: "0x00" }); console.log(countOfPrimarySalesItems?.count);
Was this page helpful?