Function useAuctionWinner

  • Get the winner of an english auction

    Parameters

    • contract: RequiredParam<Marketplace | MarketplaceV3>

      an instance of a marketplace contract

    • listingId: RequiredParam<BigNumberish>

      the listing id to check

    Returns UseQueryResult

    a response object that includes the address of the winner of the auction or undefined if there is no winner yet

    Example

    const listingId = 0;
    const { data: auctionWinner, isLoading, error } = useAuctionWinner(contract, listingId);

    Twfeature

    EnglishAuctions

    See

    Documentation

Generated using TypeDoc