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: ...,
})
],
});

Parameters

Returns

The prepared event object.