Home > @3rdweb/sdk > IMarketplace > getActiveOffer
If the address
has made an offer to the specified listing, this method will fetch the offer and return it. If no offer has been made, this method will return undefined
.
Signature:
getActiveOffer(listingId: BigNumberish, address: string): Promise<Offer | undefined>;
Parameter | Type | Description |
---|---|---|
listingId | BigNumberish | Id of the listing to get offers for. |
address | string | Address of the buyer. |
Returns:
Promise<Offer | undefined>