Skip to main content
The useClient hook returns the Para client instance provided to ParaProvider. Use it to call any method on the client directly, such as getDisplayAddress or supportedWalletTypes.

Import

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

Usage

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

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

  if (!client || !wallet) return null;

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

  return <Text>Address: {evmAddress}</Text>;
}