Overview

Use hooks directly in your React app for full control over the UI and user experience. Build custom flows for subname claiming, profile management, and ENS resolution, tailored exactly to your app.

Quickstart: A fast and easy setup guide to help you integrate the JustaName React SDK and start building custom ENS experiences in your application.

Quickstart

Check Availability: Verify if a subname is available before allowing users to claim it. Includes best practices for debouncing user input.

Check Availability

Issue Subnames: Claim and issue new subnames off-chain using the useAddSubname hook. Handles wallet signatures and API communication automatically.

Issue Subnames

Update Subnames: Update ENS records including text records (avatar, bio, socials) and multi-chain addresses. Includes toCoinType usage for EVM chain address storage.

Update Subnames

Resolution: Resolve any ENS name to retrieve all associated records—text records, coin addresses, and content hash—in a single call using useRecords.

Resolution

Reverse Resolution: Look up the primary ENS name for any Ethereum address using usePrimaryName. Includes L2 primary name support with toCoinType.

Reverse Resolution

Get Subnames: Fetch all subnames owned by the connected account or any arbitrary address using useAccountSubnames and useAddressSubnames.

Get All Subnames for an Owner


Installation

npm install @justaname.id/react

Last updated

Was this helpful?