registerEvent
Creates an event object for the Register event.
import { getContractEvents } from "thirdweb";import { registerEvent } from "thirdweb/extensions/farcaster"; const events = await getContractEvents({contract,events: [ registerEvent({ to: ..., id: ...,})],});
function registerEvent( filters: Partial<{ id: bigint; to: string }>, readonly inputs: readonly [ { readonly indexed: true; readonly name: "to"; readonly type: "address"; }, { readonly indexed: true; readonly name: "id"; readonly type: "uint256"; }, { readonly name: "recovery"; readonly type: "address" }, ]; readonly name: "Register"; readonly type: "event";}>;
readonly inputs: readonly [ { readonly indexed: true; readonly name: "to"; readonly type: "address"; }, { readonly indexed: true; readonly name: "id"; readonly type: "uint256"; }, { readonly name: "recovery"; readonly type: "address" }, ]; readonly name: "Register"; readonly type: "event";}>;
The prepared event object.