Skip to content

useAccount

Hook to get the current account / address.

Usage

 
import { useAccount } from "@hyper-gate/react";
 
export function App() {
  const 
const account: { address: `r${string}` | undefined; addresses: readonly [`r${string}`, ...`r${string}`[]] | undefined; chainId: number | undefined; chain: Chain | undefined; ... 5 more ...; isReconnecting: boolean; }
account
= useAccount();
}