Docs

addSignerFor

Adds farcaster signer for a given user. Helpful if you want to cover the gas fee for a user.

Example

import { addSignerFor } from "thirdweb/extensions/farcaster";
import { sendTransaction } from "thirdweb";
const transaction = addSignerFor({
client,
appAccount,
userAccount,
signerPublicKey,
});
await sendTransaction({ transaction, account });

Parameters

Returns

A prepared transaction object to add the signer to the account.