tokensMintedEvent

Creates an event object for the TokensMinted event.

Example

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";
}>;

Parameters

Optional filters to apply to the event.

Type

let filters: Partial<{ mintedTo: string }>;

Returns

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.