Retrieves an offer based on the provided options.
import { getOffer } from "thirdweb/extensions/marketplace"; const listing = await getOffer({ contract, listingId: 1n });
function getOffer( options: BaseTransactionOptions<GetOfferParams>,): Promise<Offer>;
The options for retrieving the offer.
let options: BaseTransactionOptions<GetOfferParams>;
let returnType: { asset: NFT; assetContractAddress: Address; currencyContractAddress: Address; currencyValue: GetBalanceResult; endTimeInSeconds: bigint; id: bigint; offerorAddress: Address; quantity: bigint; status: ListingStatus; tokenId: bigint; totalPrice: bigint;};
A promise that resolves to the offer.