Skip to main content
The useParaViemAccount hook returns a Viem LocalAccount for the user’s EVM wallet. It supports both embedded Para wallets and external wallets. If the user has multiple EVM wallets, pass address or walletId to select one. When omitted, the active wallet is used automatically.
Requires @getpara/viem-v2-integration as a peer dependency.

Import

import { useParaViemAccount } from "@getpara/react-sdk";

Usage

import { useParaViemAccount } from "@getpara/react-sdk";

function WalletAddress() {
  const { viemAccount, isLoading } = useParaViemAccount();

  if (isLoading) return <p>Loading...</p>;

  return (
    <div>
      <p>Address: {viemAccount?.address ?? "No wallet"}</p>
    </div>
  );
}