Function useWinningBid

  • Beta

    Get the winning bid for an auction

    Parameters

    • contract: RequiredParam<Marketplace>

      an instance of a marketplace contract

    • listingId: RequiredParam<BigNumberish>

      the listing id to check

    Returns UseQueryResult

    a response object that includes the Offer that is winning the auction

    Example

    const listingId = 0;
    const { data: winningBid, isLoading, error } = useWinningBid(contract, listingId);

    See

    Documentation

Generated using TypeDoc