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