Skip to main content

Get Current Wallet

Use the 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>
  );
}

Get All Wallets

Use the 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>
      )}
    />
  );
}

Filter Wallets by Type

Access wallets filtered by blockchain type using the Para client directly.
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");
}

Next Steps