useViemAccount hook provides a Viem account for a Para wallet.
Import
Usage
Return Type
The hook returns aUseViemAccountReturn object with the following properties:
Hook for retrieving a Viem account for a Para wallet
useViemAccount hook provides a Viem account for a Para wallet.
import { useViemAccount } from "@getpara/react-sdk";
function ViemAccount() {
const { viemAccount, isLoading } = useViemAccount();
if (isLoading) return <div>Loading viem account...</div>;
return (
<div>
<p>Address: {viemAccount.address}</p>
</div>
);
}
UseViemAccountReturn object with the following properties: