Docs

useMinimumNextBid

Hook for getting the minimum value a bid must be to be valid in an auction listing on a Marketplace or MarketplaceV3 contract.

Takes into account the current highest bid, or the reserve price if there is no bid, and increments it by the bid buffer to calculate the minimum next bid.

Example

import { useContract, useMinimumNextBid } from "@thirdweb-dev/react";
function App() {
const { contract } = useContract(contractAddress, "marketplace");
const { data, isLoading, error } = useMinimumNextBid(
contract,
listingId,
);
}

Parameters

Returns

Query result object that includes the minimum next bid for the auction listing