newOfferEvent

Creates an event object for the NewOffer event.

Example

import { getContractEvents } from "thirdweb";
import { newOfferEvent } from "thirdweb/extensions/marketplace";
const events = await getContractEvents({
contract,
events: [
newOfferEvent({
offeror: ...,
offerId: ...,
assetContract: ...,
})
],
});

Parameters

Returns

The prepared event object.