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.
@getpara/react-sdk includes @getpara/viem-v2-integration. Install viem when your app imports Viem helpers such as chains, transports, parsers, or types directly.
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>
);
}