tokenURIRevealedEvent

Creates an event object for the TokenURIRevealed event.

Example

import { getContractEvents } from "thirdweb";
import { tokenURIRevealedEvent } from "thirdweb/extensions/erc721";
const events = await getContractEvents({
contract,
events: [
tokenURIRevealedEvent({
index: ...,
})
],
});
function tokenURIRevealedEvent(
filters: Partial<{ index: bigint }>,
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "index";
readonly type: "uint256";
},
{ readonly name: "revealedURI"; readonly type: "string" },
];
readonly name: "TokenURIRevealed";
readonly type: "event";
}>;

Parameters

Optional filters to apply to the event.

Type

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

Returns

let returnType: PreparedEvent<{
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "index";
readonly type: "uint256";
},
{ readonly name: "revealedURI"; readonly type: "string" },
];
readonly name: "TokenURIRevealed";
readonly type: "event";
}>;

The prepared event object.