useEnglishAuctionsCount

Hook to get the total number of direct listings on a Marketplace V3 contract.

This hook is only for Marketplace V3 contracts.

For Marketplace contracts, use useListingsCount instead.

Example

import {
useEnglishAuctionsCount,
useContract,
} from "@thirdweb-dev/react";
function App() {
const { contract } = useContract(contractAddress, "marketplace-v3");
const {
data: englishAuctionsCount,
isLoading,
error,
} = useEnglishAuctionsCount(contract);
}
function useEnglishAuctionsCount(
contract: RequiredParam<MarketplaceV3>,
): UseQueryResult<BigNumber, unknown>;

Parameters

Instance of a MarketplaceV3 contract

Type

let contract: RequiredParam<MarketplaceV3>;

Returns

let returnType: UseQueryResult<BigNumber, unknown>;

The hook's data property, once loaded, is a BigNumber representing the number of direct listings on the Marketplace V3 contract.