Overview
- Returns the connected wallet address, adapting to the default chain’s format
(hex for
minievm, bech32 for others). - Use when you need a single address that matches the default chain’s format.
Prerequisites
- Must be rendered within
InterwovenKitProvider. - Must be used within a React Query
QueryClientProvider. - Must be used within a wagmi
WagmiProvider. - Client-only (no SSR): Put this in a
use clientprovider tree, or use a dynamic import in Next.js.
Quickstart
This example assumes providers are already set up. For complete setup
configurations, see Provider Setup.
Return value
minievm, or an Initia bech32
address for other chain types. Returns an empty string when there is no
connected address.
Notes
- Prefer this hook over chain-specific address hooks (
useHexAddress,useInitiaAddress) when you need a single address that automatically adapts to the default chain’s format. - Returns hex format for
minievmchains, bech32 format for other chain types.