useWalletState hook. This hook provides methods to manage the currently selected wallet and allows you to switch between different wallets.
Change the currently selected wallet for blockchain operations
useWalletState hook. This hook provides methods to manage the currently selected wallet and allows you to switch between different wallets.
import { useWalletState } from '@getpara/react-sdk';
const { selectedWallet, setSelectedWallet, updateSelectedWallet } = useWalletState();
// Switch to a specific wallet by ID
setSelectedWallet({ id: 'wallet_123' });
// Refresh selection from Para client state
updateSelectedWallet();