useListingsCount
Get the total count of listings
function useListingsCount(
contract: RequiredParam<Marketplace>,
): UseQueryResult<BigNumber, unknown>;
Parameters
Returns
a response object that includes the listing count
type ReturnType = UseQueryResult<BigNumber, unknown>;
Example
const {
data: listingsCount,
isLoading,
error,
} = useListingsCount(contract);