Displaying Namoshi names instead of hexadecimal addresses significantly improves the user experience of your dApp.Documentation Index
Fetch the complete documentation index at: https://docs.namoshi.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Connection Buttons (RainbowKit, ConnectKit)
If you are using popular libraries like RainbowKit or ConnectKit, they will automatically use the Namoshi names if you configure the Citrea chain correctly with theensRegistry and ensUniversalResolver addresses.
RainbowKit Configuration
Manual Display in UI
If you are building a custom connection button, use theuseEnsName hook from Wagmi to resolve the user’s address to their Namoshi primary name.
Best Practices
- Truncation: If a Namoshi name is too long, use CSS
text-overflow: ellipsis. Never truncate a Namoshi name manually (e.g.,namoshi...citrea), as it breaks the identity. - Caching: Wagmi handles caching automatically, but if you are using raw
viem, ensure you cache results to avoid excessive RPC calls.