changeRecoveryAddressEvent

Creates an event object for the ChangeRecoveryAddress event.

Example

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

Parameters

Optional filters to apply to the event.

Type

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

Returns

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

The prepared event object.