newSaleEvent

Creates an event object for the NewSale event.

Example

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

Parameters

Returns

The prepared event object.