Skip to content

Conversation

@jadonamite
Copy link

This PR adds a guide for integrating Basenames (Base's native identity system) into dApps.

Key Features:

useBasename Hook: A custom hook using viem to handle Reverse Resolution (Address -> Name) specifically on the Base L2 network.

Metadata Fetching: implementation of getEnsText to retrieve the user's 'avatar' record for rich social displays.

UI Component: A copy-paste IdentityBadge component that handles loading states, avatar fallbacks, and address truncation.

Why: Users expect social profiles, not hex addresses. This guide provides the code to make dApps on Base feel "human-readable" by default.

This document outlines the implementation of an Identity-First UX using Basenames, detailing the challenges, solutions, and code examples for resolving user identities on Layer 2.
@cb-heimdall
Copy link
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants