recoverEvent

Creates an event object for the Recover event.

Example

import { getContractEvents } from "thirdweb";
import { recoverEvent } from "thirdweb/extensions/farcaster";
const events = await getContractEvents({
contract,
events: [
recoverEvent({
from: ...,
to: ...,
id: ...,
})
],
});
function recoverEvent(
filters: Partial<{ from: string; id: bigint; to: string }>,
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "from";
readonly type: "address";
},
{
readonly indexed: true;
readonly name: "to";
readonly type: "address";
},
{
readonly indexed: true;
readonly name: "id";
readonly type: "uint256";
},
];
readonly name: "Recover";
readonly type: "event";
}>;

Parameters

Optional filters to apply to the event.

Type

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

Returns

let returnType: PreparedEvent<{
readonly inputs: readonly [
{
readonly indexed: true;
readonly name: "from";
readonly type: "address";
},
{
readonly indexed: true;
readonly name: "to";
readonly type: "address";
},
{
readonly indexed: true;
readonly name: "id";
readonly type: "uint256";
},
];
readonly name: "Recover";
readonly type: "event";
}>;

The prepared event object.