Docs

Interact with wallets

Once connected, you can interact with the wallet using the thirdweb/wallets/inApp specific methods.

Get the user email

import { getUserEmail } from "thirdweb/wallets/in-app";
const email = await getUserEmail({ client });
console.log("user email", email);

Get the user's account

import { useActiveAccount } from "thirdweb/react";
const account = useActiveAccount();

Get the user's wallet address

import { useActiveAccount } from "thirdweb/react";
const account = useActiveAccount();
console.log("wallet address", account.address);

Get wallet balance

await getWalletBalance({
client,
chain,
address: account.address,
});

Sign a message

await inAppWallet.sign("Hello World!");