Skip to main content

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.

The useWallet hook provides access to the currently selected wallet’s information. Use useClient alongside it to derive display addresses.

Import

import { useWallet } from "@getpara/react-native-wallet";

Usage

import { useWallet, useClient } from "@getpara/react-native-wallet";
import { View, Text } from "react-native";

function WalletInfo() {
  const { data: wallet } = useWallet();
  const client = useClient();

  if (!wallet) return <Text>No wallet</Text>;

  const address = client?.getDisplayAddress(wallet.id, { addressType: "EVM" });

  return (
    <View>
      <Text>Wallet ID: {wallet.id}</Text>
      <Text>Address: {address}</Text>
    </View>
  );
}