tokensLazyMintedEvent

Creates an event object for the TokensLazyMinted event.

Example

import { getContractEvents } from "thirdweb";
import { tokensLazyMintedEvent } from "thirdweb/extensions/erc1155";
const events = await getContractEvents({
contract,
events: [
tokensLazyMintedEvent({
startTokenId: ...,
})
],
});
function tokensLazyMintedEvent(
filters: Partial<{ startTokenId: bigint }>,
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "startTokenId";
readonly type: "uint256";
},
{ readonly name: "endTokenId"; readonly type: "uint256" },
{ readonly name: "baseURI"; readonly type: "string" },
{ readonly name: "encryptedBaseURI"; readonly type: "bytes" },
];
readonly name: "TokensLazyMinted";
readonly type: "event";
}>;

Parameters

Optional filters to apply to the event.

Type

let filters: Partial<{ startTokenId: bigint }>;

Returns

let returnType: PreparedEvent<{
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "startTokenId";
readonly type: "uint256";
},
{ readonly name: "endTokenId"; readonly type: "uint256" },
{ readonly name: "baseURI"; readonly type: "string" },
{ readonly name: "encryptedBaseURI"; readonly type: "bytes" },
];
readonly name: "TokensLazyMinted";
readonly type: "event";
}>;

The prepared event object.