Documentation Index
Fetch the complete documentation index at: https://docs.getpara.com/llms.txt
Use this file to discover all available pages before exploring further.
Get Current Wallet
Use the 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>
);
}
Get All Wallets
Use the 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>
);
}
Filter Wallets by Type
Access wallets filtered by blockchain type using the Para client.
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');
}
Wallet Properties
Each wallet object for embedded wallets has the following properties:
Next Steps