getUser

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

Import

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

Usage

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

Parameters

config

AlchemyAccountsConfig the account config containing app state

Returns

GetUserResult the user if the signer or an EOA are connected