useEnglishAuctions
Hook to get a list of all English auctions from a Marketplace V3 contract.
Marketplace
Note: This hook is only for Marketplace V3 contracts.
For Marketplace contracts, use useListings instead.
import { useEnglishAuctions } from "@thirdweb-dev/react";
const { data, isLoading, error } = useEnglishAuctions(contract);
Usage
Provide your Marketplace V3 contract instance and an optional filter object.
import { useEnglishAuctions, useContract } from "@thirdweb-dev/react";
// Your smart contract address
const contractAddress = "{{contract_address}}";
function App() {
const { contract } = useContract(contractAddress, "marketplace-v3");
const {
data: englishAuctions,
isLoading,
error,
} = useEnglishAuctions(contract);
}