addEvent

Creates an event object for the Add event.

Example

import { getContractEvents } from "thirdweb";
import { addEvent } from "thirdweb/extensions/farcaster";
const events = await getContractEvents({
contract,
events: [
addEvent({
fid: ...,
keyType: ...,
key: ...,
})
],
});

Parameters

Returns

The prepared event object.