Skip to content

getUser

Returns the currently logged in user if using an SCA with the AlchemySigner or the connected EOA details.

Import

import { getUser } from "@account-kit/core";

Usage

import { getUser } from "@account-kit/core";
import { config } from "./config";
 
const user = getUser(config);

Parameters

config

AlchemyAccountsConfig the account config containing app state

Returns

GetUserResult the user if the signer or an EOA are connected