Creates an event object for the ApprovalForAll event.
import { getContractEvents } from "thirdweb";import { approvalForAllEvent } from "thirdweb/extensions/erc721"; const events = await getContractEvents({contract,events: [ approvalForAllEvent({ owner: ..., operator: ...,})],});
function approvalForAllEvent( filters: Partial<{ operator: string; owner: string }>,): PreparedEvent<{ readonly inputs: readonly [ { readonly indexed: true; readonly name: "owner"; readonly type: "address"; }, { readonly indexed: true; readonly name: "operator"; readonly type: "address"; }, { readonly name: "approved"; readonly type: "bool" }, ]; readonly name: "ApprovalForAll"; readonly type: "event";}>;
Optional filters to apply to the event.
let filters: Partial<{ operator: string; owner: string }>;
let returnType: PreparedEvent<{ readonly inputs: readonly [ { readonly indexed: true; readonly name: "owner"; readonly type: "address"; }, { readonly indexed: true; readonly name: "operator"; readonly type: "address"; }, { readonly name: "approved"; readonly type: "bool" }, ]; readonly name: "ApprovalForAll"; readonly type: "event";}>;
The prepared event object.