useTotalCount

Get total supply count

function useTotalCount<TContract extends NFTContract>(
  contract: RequiredParam<TContract>,
): UseQueryResult<BigNumber, unknown>;

Parameters


Returns

a response object that includes the total count of NFTs

type ReturnType = UseQueryResult<BigNumber, unknown>;

Example

const { contract } = useContract("{{contract_address}}");
const { data: count, isLoading, error } = useTotalCount(contract);