registerFid

Registers a Farcaster fid for the given wallet.

Example

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

Parameters

The options for registering an account.

Type

let options: {
chain?: Chain;
client: ThirdwebClient;
disableCache?: boolean;
extraStorage?: bigint | string | number;
recoveryAddress: Address;
};

Returns

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

A prepared transaction object to register the account.