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.
Access wallet addresses and information using Para React hooks
useWallet
ParaModal
import { useWallet } from '@getpara/react-sdk'; export default function CurrentWallet() { const { data: wallet } = useWallet(); if (!wallet) return <div>No wallet connected</div>; return ( <div> <p>Address: {wallet.address}</p> <p>Type: {wallet.scheme}</p> <p>ID: {wallet.id}</p> </div> ); }
useAccount
import { useAccount } from '@getpara/react-sdk'; export default function AllWallets() { const { embedded, external } = useAccount(); // Get all embedded wallets const wallets = embedded.wallets; // Record<string, Wallet> const walletList = Object.values(wallets); return ( <div> {walletList.map((wallet) => ( <div key={wallet.id}> <p>{wallet.scheme}: {wallet.address}</p> </div> ))} </div> ); }
import { useClient } from '@getpara/react-sdk'; export default function WalletsByType() { // useClient hook to access Para client const para = useClient(); // Get wallets by type const evmWallets = para.getWalletsByType('EVM'); const solanaWallets = para.getWalletsByType('SOLANA'); const cosmosWallets = para.getWalletsByType('COSMOS'); const stellarWallets = para.getWalletsByType('STELLAR'); }