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 Native hooks
useWallet
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
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"); }