registerFidAndSigner

Registers a Farcaster fid and signer for the given wallet using the provided app account.

Example

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

Parameters

The options for registering an account.

Type

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

Returns

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

A prepared transaction object to register the account.