Docs

getFid

Retrieves the current fid for an account.

Example

import { getFid } from "thirdweb/extensions/farcaster";
const price = await getFid({
client,
address,
});

Parameters

Returns

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