Docs

packCreatedEvent

Creates an event object for the PackCreated event.

Example

import { getContractEvents } from "thirdweb";
import { packCreatedEvent } from "thirdweb/extensions/erc1155";
const events = await getContractEvents({
contract,
events: [
packCreatedEvent({
packId: ...,
})
],
});

Parameters

Returns

The prepared event object.