Get Current Wallet
Use theuseWallet hook to access the currently active wallet.
Get All Wallets
Use theuseAccount hook to access all embedded wallets for the current user.
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 Native hooks
useWallet hook to access the currently active wallet.
import { useWallet } from "@getpara/react-native-wallet";
import { View, Text } from "react-native";
export default function CurrentWallet() {
const { data: wallet } = useWallet();
if (!wallet) return <Text>No wallet connected</Text>;
return (
<View>
<Text>Address: {wallet.address}</Text>
<Text>Type: {wallet.scheme}</Text>
<Text>ID: {wallet.id}</Text>
</View>
);
}
useAccount hook to access all embedded wallets for the current user.
import { useAccount } from "@getpara/react-native-wallet";
import { View, Text, FlatList } from "react-native";
export default function AllWallets() {
const { embedded } = useAccount();
const walletList = Object.values(embedded.wallets);
return (
<FlatList
data={walletList}
keyExtractor={(w) => w.id}
renderItem={({ item }) => (
<View>
<Text>{item.scheme}: {item.address}</Text>
</View>
)}
/>
);
}
import { useClient } from "@getpara/react-native-wallet";
export default function WalletsByType() {
const para = useClient();
const evmWallets = para.getWalletsByType("EVM");
const solanaWallets = para.getWalletsByType("SOLANA");
const cosmosWallets = para.getWalletsByType("COSMOS");
const stellarWallets = para.getWalletsByType("STELLAR");
}