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 }>,): PreparedEvent<{ 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";}>;
Optional filters to apply to the event.
let filters: Partial<{ id: bigint; to: string }>;
let returnType: PreparedEvent<{ 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.