an instance of a Marketplace contract
a mutation object that can be used to create a new auction listing
const Component = () => {
const { contract } = useContract("{{contract_address}}");
const {
mutate: createAuctionListing,
isLoading,
error,
} = useCreateAuctionListing(contract);
if (error) {
console.error("failed to create auction listing", error);
}
return (
<button
disabled={isLoading}
onClick={() => createAuctionListing(auctionListingData)}
>
Create Auction Listing!
</button>
);
};
EnglishAuctions
Generated using TypeDoc
Create a new english auction