metadataUpdateEvent

Creates an event object for the MetadataUpdate event.

Example

import { getContractEvents } from "thirdweb";
import { metadataUpdateEvent } from "thirdweb/extensions/erc1155";
const events = await getContractEvents({
contract,
events: [metadataUpdateEvent()],
});
function metadataUpdateEvent(): PreparedEvent<{
readonly inputs: readonly [
{ readonly name: "_tokenId"; readonly type: "uint256" },
];
readonly name: "MetadataUpdate";
readonly type: "event";
}>;

Returns

let returnType: PreparedEvent<{
readonly inputs: readonly [
{ readonly name: "_tokenId"; readonly type: "uint256" },
];
readonly name: "MetadataUpdate";
readonly type: "event";
}>;

The prepared event object.