packOpenedEvent

Creates an event object for the PackOpened event.

Example

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

Parameters

Returns

The prepared event object.