setKeyGatewayEvent

Creates an event object for the SetKeyGateway event.

Example

import { getContractEvents } from "thirdweb";
import { setKeyGatewayEvent } from "thirdweb/extensions/farcaster";
const events = await getContractEvents({
contract,
events: [setKeyGatewayEvent()],
});
function setKeyGatewayEvent(): PreparedEvent<{
readonly inputs: readonly [
{ readonly name: "oldKeyGateway"; readonly type: "address" },
{ readonly name: "newKeyGateway"; readonly type: "address" },
];
readonly name: "SetKeyGateway";
readonly type: "event";
}>;

Returns

let returnType: PreparedEvent<{
readonly inputs: readonly [
{ readonly name: "oldKeyGateway"; readonly type: "address" },
{ readonly name: "newKeyGateway"; readonly type: "address" },
];
readonly name: "SetKeyGateway";
readonly type: "event";
}>;

The prepared event object.