import { sendTransaction } from "thirdweb";
import { add } from "thirdweb/extensions/farcaster";
 
const transaction = add({
 contract,
 keyType: ...,
 key: ...,
 metadataType: ...,
 metadata: ...,
 overrides: {
   ...
 }
});
 
// Send the transaction
await sendTransaction({ transaction, account });