getOffer

Retrieves an offer based on the provided options.

Example

import { getOffer } from "thirdweb/extensions/marketplace";
const listing = await getOffer({ contract, listingId: 1n });
function getOffer(
): Promise<Offer>;

Parameters

The options for retrieving the offer.

Type

Returns

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.