User ID: {user?.id}
Embedded: {embeddedWallet.address}
)} {externalWallets.map((w) => ({w.walletClientType}: {w.address}
))}Wallet: {wallet.address}
; } ``` ## Embedded Wallet Management ### Sign a Message ```typescript import { useWallets } from "@privy-io/react-auth"; async function signMessage(wallets: ReturnTypeSolana address: {solanaWallet.address}
; } ``` ## Smart Wallet Integration ### Privy + Safe (Account Abstraction) Privy embedded wallets can serve as the signer/owner for a Safe smart account, enabling gas sponsorship and batched transactions. ```typescript import { PrivyProvider } from "@privy-io/react-auth";Signer (EOA): {embeddedWallet.address}
)} {smartWallet && (Smart Wallet (Safe): {smartWallet.address}
)}