approvalForAllEvent

Creates an event object for the ApprovalForAll event.

Example

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

Parameters

Returns

The prepared event object.