prepareEvent

Prepares an event by parsing the signature, generating the event hash, and encoding the event topics.

Example

import { prepareEvent } from "thirdweb";
const myEvent = prepareEvent({
signature: "event MyEvent(uint256 myArg)",
});

Parameters

Returns

The prepared event object.