addSigner

Adds farcaster signer for the given account.

Example

import { addSigner } from "thirdweb/extensions/farcaster";
import { sendTransaction } from "thirdweb";
const transaction = addSigner({
client,
appAccount,
signerPublicKey,
});
await sendTransaction({ transaction, account });
function addSigner(
options: AddSignerParams,

Parameters

The options for adding the signer.

Type

let options: Prettify<
{
chain?: Chain;
client: ThirdwebClient;
disableCache?: boolean;
signerPublicKey: Hex;
} & (
| { appAccount: Account }
| {
appAccountAddress: Address;
deadline: bigint;
signedKeyRequestMetadata: Hex;
}
)
>;

Returns

let returnType: PreparedTransaction<
[],
AbiFunction,
>;

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