How to sell ENS subdomains as NFTs?

1
0

Hey. ​ I am a young developer from Sweden. As of recently I’ve been making websites with Next JS (a framework of JavaScript) and I’m getting pretty good at it. ​ My question is, as someone who’s never made a contract of any kind before: how can I make it so people can mint subdomains as NFTs of a domain I own? ​ For example: One of my domains is called “Omnicide.eth”. I want to be able to let people mint whatever name they want as a subdomain and as an NFT. ​ So let us say someone types in “Hanna” in the search bar and then it shows “Hanna.Omnicide.eth” as being available so they can buy it. i.e. I want it to work just as the ens domain website works in terms of buying/minting ens names. ​ I’m not doing this to earn any money. I want to do this for fun and I wouldn’t put any prices over 1 USD for a name, even if it only has one character (i.e. X.omnicide.eth for example). ​ So how can I go about making a contract to make it so people can mint subdomains as NFTs and how do I need connect that to a website? ​ Can I make a clone of the ens domains website and use it as my own? ​ Thanks! 😊 ​ ​


To post an answer, please !

2 answers

33 views

Hey there, ​ I don't claim to know the technical details of the answer you're looking for but do know that each subdomain needs to be linked to a unique ERC-721 that represents the name of the subdomain.
​ There is a project named NFT.com that launched their website allowing people to mint whatever subdomain they wanted. You could join their Discord to find out more or wait for someone smarter than me to give you answer here :) ​ Regards.

2
0

Paul of Top Dog Beach Club published how to write up the contract here: https://topdogstudios.io/blog/free-community-ens-names/ ​ Once deployed, you'll make a website which connects to the wallet, in order to ask the user to sign a transaction to: Function: newSubdomain(string _subdomain, string _domain, string _topdomain, address _owner, address _target) ​ This creates the entry for their subdomain.

0
0

Not the answer you're looking for? Browse other questions tagged #NFTs #Smart Contracts or ask your own question.