Get User Info

Access user details from the useWallet hook

import { useWallet } from "@enclavemoney/enclave-wallet-sdk/dist/components/WalletProvider";

export function Page() {
     const {
         isLoggedIn,
         username,
         evmWalletAddress,
         solanaWallkeAddress,
         bitcoinWalletAddress,
         cryptoBalance
     } = useWallet();
}
Variable name
Data

username

User's username or email id (based on auth mechanism)

evmWalletAddress

EVM smart contract wallet address

solanaAddress

Solana wallet address

bitcoinWalletAddress

Bitcoin native segwit wallet address

cryptoBalance

List of aggregated token balances

isLoggedIn

Logged in state of the user (true or false)

Last updated