DOCS

useAuctionWinner

Get the winner of an english auction

Example

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

Parameters

Returns

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