getFid

Retrieves the current fid for an account.

Example

import { getFid } from "thirdweb/extensions/farcaster";
const price = await getFid({
client,
address,
});
function getFid(options: GetFidParams): Promise<bigint>;

Parameters

Parameters to pass to the function.

Type

let options: {
address: Address;
chain?: Chain;
client: ThirdwebClient;
disableCache?: boolean;
};

Returns

let returnType: Promise<bigint>;

A promise that resolves to the account's fid, if one exists, otherwise 0.