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.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Hook for accessing the Para client instance
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 { useClient } from "@getpara/react-native-wallet";
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>;
}