registerEvent

Creates an event object for the Register event.

Example

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";
}>;

Parameters

Optional filters to apply to the event.

Type

let filters: Partial<{ id: bigint; to: string }>;

Returns

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.