cancelledListingEvent

Creates an event object for the CancelledListing event.

Example

import { getContractEvents } from "thirdweb";
import { cancelledListingEvent } from "thirdweb/extensions/marketplace";
const events = await getContractEvents({
contract,
events: [
cancelledListingEvent({
listingCreator: ...,
listingId: ...,
})
],
});
function cancelledListingEvent(
filters: Partial<{ listingCreator: string; listingId: bigint }>,
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "listingCreator";
readonly type: "address";
},
{
readonly indexed: true;
readonly name: "listingId";
readonly type: "uint256";
},
];
readonly name: "CancelledListing";
readonly type: "event";
}>;

Parameters

Optional filters to apply to the event.

Type

let filters: Partial<{ listingCreator: string; listingId: bigint }>;

Returns

let returnType: PreparedEvent<{
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "listingCreator";
readonly type: "address";
},
{
readonly indexed: true;
readonly name: "listingId";
readonly type: "uint256";
},
];
readonly name: "CancelledListing";
readonly type: "event";
}>;

The prepared event object.