Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Hook for retrieving the currently selected wallet
useWallet
import { useWallet } from "@getpara/react-sdk";
function WalletInfo() { const { data: wallet, isLoading, error } = useWallet(); const para = useClient(); if (isLoading) return <div>Loading wallet...</div>; if (error) return <div>Error loading wallet</div>; if (!wallet) { return <div>No wallet selected</div>; } return ( <div> <p>Wallet ID: {wallet.id}</p> <p>Type: {wallet.type}</p> <p>Address: {para.getDisplayAddress(wallet.id, { truncate: true, addressType: wallet.type })}</p> <p>Is External: {wallet.isExternal ? "Yes" : "No"}</p> </div> ); }