Overview
Lisk Name Service (LNS) is a naming protocol for the Lisk Layer 2 chain. Instead of pasting a 0x address, a user registers a short name, owns it for a year, and lets apps resolve it back to their wallet.
I built all of it on my own: an upgradeable Solidity contract with length-based pricing, a React app for searching and registering names, and a small API with JavaScript and Python SDKs so other developers can resolve names without touching the chain themselves.
The challenge
Blockchain addresses are long, unforgiving strings. One wrong character sends money to nowhere, and nobody can remember their own. Ethereum has name services for this, but the Lisk Layer 2 ecosystem had nothing comparable for its users or its apps.
A name service also has to be more than a registry. Names need fair pricing, expiry and renewal, safe refunds, and a way for developers to look names up without running their own node.
The goal
Give Lisk users a human-readable identity, and give developers an easy way to resolve it.
- 01Let anyone search, register, renew and transfer a .lisk name from a wallet.
- 02Price names by length and expire them after a year so short names are not squatted forever.
- 03Keep the contract upgradeable, with safe handling of overpayments and fees.
- 04Offer a keyed REST API plus JavaScript and Python SDKs for resolving names.
The registry contract
The core is one Solidity contract that maps each name to an owner and an expiry time. Names are 3 to 18 characters, lowercase letters and digits only, and each registration lasts one year.
- 01Register, renew, transfer and release functions, each guarded to the name owner.
- 02Resolve returns the owner address only while the name is unexpired.
- 03Overpayments are credited to a refund balance the sender can claim, and fees go to a configurable recipient.
- 04Built on OpenZeppelin upgradeable contracts (UUPS) with a V2 contract and an upgrade script, so logic can change without losing names.
Pricing by length
Price falls as names get longer: a 3-letter name costs the most, and each extra letter takes 1.5 off a 30 unit base, with a floor of 3. Short, valuable names cost more, and long ones stay cheap. The contract exposes a calculatePrice function so the frontend can quote the exact fee before the wallet pops up. Late in the build I lowered the fee constants so the flow could be tested on testnet.
The web app
The frontend is a Vite and React app with wallet connection through wagmi. A search bar checks availability against the contract, a modal handles registration, and the landing page has a particle background, typing effect and custom cursor. Early on it ran on mock data; I replaced that with live contract reads once the contract was bound to the interface.
Developer API and SDKs
A Developer page lets a connected wallet generate an API key. The Express backend stores one key per wallet in Appwrite and checks it as a Bearer token on a resolve endpoint, which looks the name up on-chain and returns the address as JSON.
On top of that I scaffolded two small client libraries, one for JavaScript and TypeScript and one for Python, each exposing a single resolve call. Both still point at a local API URL, so they are starting points rather than published packages.
The outcome
LNS runs as a working testnet product: a deployed contract, a hosted web app, and a keyed API with two SDK scaffolds, all written by me in a little over a week. It shows the whole path from a Solidity registry to something other developers can integrate. The README lists staking, referral rewards and governance as future work, none of which is built.


