getUser

Gets user based on the provided query parameters.

Example

import { getUser } from "thirdweb/wallets";
const user = await getUser({
client,
walletAddress: "0x123...",
});
function getUser(options: {
client: ThirdwebClient;
email?: string;
id?: string;
phone?: string;
walletAddress?: string;
}): Promise<GetUserResult | null>;

Parameters

The options for the find users function.

Type

let options: {
client: ThirdwebClient;
email?: string;
id?: string;
phone?: string;
walletAddress?: string;
};

Returns

let returnType: {
createdAt: string;
email?: string;
phone?: string;
profiles: Array<Profile>;
userId: string;
walletAddress: string;
};

An array of user objects.