Get Current Wallet
Use theuseWallet hook to access the currently selected wallet in the ParaModal.
Get All Wallets
Use theuseAccount hook to access all user wallets for both embedded and external types.
Documentation Index
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 hook to access the currently selected wallet in the 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 hook to access all user wallets for both embedded and external types.
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');
}