Creates an event object for the TokensMinted event.
import { getContractEvents } from "thirdweb";import { tokensMintedEvent } from "thirdweb/extensions/erc20"; const events = await getContractEvents({contract,events: [ tokensMintedEvent({ mintedTo: ...,})],});
function tokensMintedEvent( filters: Partial<{ mintedTo: string }>,): PreparedEvent<{ readonly inputs: readonly [ { readonly indexed: true; readonly name: "mintedTo"; readonly type: "address"; }, { readonly name: "quantityMinted"; readonly type: "uint256" }, ]; readonly name: "TokensMinted"; readonly type: "event";}>;
Optional filters to apply to the event.
let filters: Partial<{ mintedTo: string }>;
let returnType: PreparedEvent<{ readonly inputs: readonly [ { readonly indexed: true; readonly name: "mintedTo"; readonly type: "address"; }, { readonly name: "quantityMinted"; readonly type: "uint256" }, ]; readonly name: "TokensMinted"; readonly type: "event";}>;
The prepared event object.