A decentralized naming registry DApp built with Next.js, Tailwind CSS, Shadcn UI components, and Hardhat for smart contract development. This project allows users to search for, register, renew, and transfer unique names on the blockchain.
- Features
- Project Structure
- Prerequisites
- Setup & Installation
- Environment Variables
- Running the Project Locally
- Deployment
- Usage
- License
- Name Search: Check if a desired name is available for registration.
- Name Registration: Register available names on the blockchain.
- Name Renewal: Extend ownership of names before expiry.
- Name Transfer: Transfer ownership to another wallet.
- Profile View: Manage all registered names.
- Adminless & Trustless: Powered by smart contracts on Ethereum.
project-root/
├── backend/ # Hardhat smart contract project
│ ├── contracts/
│ ├── scripts/
│ ├── hardhat.config.js
│ └── .env # Environment variables
├── frontend/ # Next.js frontend
│ ├── abi/
│ ├── app/
│ ├── components/
│ ├── lib/
│ └── public/
├── README.md
└── .gitignore
- Node.js >= 18
- npm or yarn
- MetaMask or any Ethereum-compatible wallet
- Clone the repository:
git clone https://github.com/kautilyadevaraj/decentralized-name-registry.git
cd decentralized-name-registry- Install backend dependencies:
cd backend
npm install- Install frontend dependencies:
cd ../frontend
npm installCreate a .env file in both the backend/ directory.
SEPOLIA_RPC=https://eth-sepolia.g.alchemy.com/v2/YOUR_ALCHEMY_KEY
PRIVATE_KEY=YOUR_WALLET_PRIVATE_KEYNote: Never commit
.envfiles. They are listed in.gitignore.
cd backend
npx hardhat compile
npx hardhat run scripts/deploy.js --network sepoliacp backend/artifacts/contracts/NameRegistry.sol/NameRegistry.json frontend/abi/NameRegistry.jsoncd frontend
npm run devOpen your browser at http://localhost:3000
You can deploy the frontend easily using Vercel:
Add your environment variables on Vercel's dashboard.
- Register a Name:
/register - Search a Name:
/search?name=yourname.dcn - View Name Details:
/name/yourname.dcn - Renew a Name:
/renew/yourname.dcn - User Profile:
/profile - Explore All Names:
/explore
MIT © 2025 Kautilya DK