newListingEvent

Creates an event object for the NewListing event.

Example

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

Parameters

Returns

The prepared event object.