getHandleFromProfileId

Return the Lens handle of a profile in the format: lens/@<name-of-user>

Example

import { getHandleFromProfileId } from "thirdweb/extensions/lens";
const profileId = 461662n;
const handle = await getHandleFromProfileId({ profileId, client }); // "lens/@captain_jack"
function getHandleFromProfileId(
): Promise<null | string>;

Parameters

Type

let options: {
client: ThirdwebClient;
overrides?: {
chain?: Chain;
lensHandleAddress?: string;
tokenHandleRegistryAddress?: string;
};
profileId: bigint;
};

Returns

let returnType: Promise<null | string>;