tokensMintedEvent
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 }>, readonly inputs: readonly [ { readonly indexed: true; readonly name: "mintedTo"; readonly type: "address"; }, { readonly name: "quantityMinted"; readonly type: "uint256" }, ]; readonly name: "TokensMinted"; readonly type: "event";}>;
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.