Input a list of Handshake top-level domains, outputs names sorted into 4 arrays: available, registered, reserved, or invalid.

Overview

name-check

A simple NodeJS package that, given a flat list of top-level domain names, queries the Handshake (HNS) blockchain in order to classify each domain based on its availability in the Handshake root zone.

Example

Running with the included list of test names

[
  "alpha",
  "beta",
  "gamma",
  "delta",
  "alice",
  "bob",
  "carol",
  "dave",
  "alongenoughstringthatispresumablynotregistered",
  "alongenoughstringthatispresumablynotregisteredandisalsotoolongtobeavaliddomainname"
]

returns:

{
  "available": [
    "alongenoughstringthatispresumablynotregistered"
  ],
  "registered": [
    "beta",
    "bob",
    "carol",
    "dave"
  ],
  "reserved": [
    "alpha",
    "gamma",
    "delta",
    "alice"
  ],
  "invalid": [
    "alongenoughstringthatispresumablynotregisteredandisalsotoolongtobeavaliddomainname"
  ]
}

Usage

So, you have a long list of domain names and you want to get the status of each straight from the chain?

Download

Get this package

git clone https://github.com/nlydv/name-check
cd name-check
npm install

Setup

Rename config.example.json

mv config.example.json config.json

and save your node's API keys in config.json

Import

Then, format your list of names as a simple JSON array in the nameList.json file. If you're not familiar with JSON, just Google "txt to json list" or something and you'll probably find some online converters.

Run

./index.js

or

node .

License

This project is licensed under the terms of the MIT license (see LICENSE.txt file published therein).

You might also like...

A Chrome extension for converting ENS names into links to daopanel chat.

A Chrome extension for converting ENS names into links to daopanel chat.

daopanel connect A Chrome extension that links Twitter usernames to daopanel chat conversations Example daopanel chat is powered by XMTP Github Action

Aug 23, 2022

Convert Tailwind CSS class names into their CSS3-equivalent styles โ€”ย right from Alfred.

alfred-tailwind2css Tailwind2CSS offers you the ability to convert TailwindCSS classes into their CSS3-equivalent styles -- right from within Alfred.

Dec 7, 2022

This project will be a basic website that allows users to add/remove books from a list. The main objective is to understand how to use JavaScript objects and arrays and dynamically modify the DOM and add basic events.

Awesome-books Awesome Books This project will be a basic website that allows users to add/remove books from a list. This project is part of the Microv

Oct 3, 2022

Basic website that allows users to add/remove books from a list. Achieved using JavaScript objects and arrays, dynamically modifying the DOM and adding basic events.

Awesome Books Basic website that allows users to add/remove books from a list. Achieved using JavaScript objects and arrays, dynamically modifying the

Dec 20, 2022

This is a basic app that allows user add/remove books from a list of books. It was created by using JavaScript arrays and objects to dynamically modify the DOM.

Awesome-Books This application lets you compile a dynamic collection of books using JavaScript. It is a single page app. You enter your book title & a

Oct 24, 2022

Expose top-level identifiers in Next.js app.js

recma-nextjs-static-props Expose top-level identifiers in Next.js app.js Installation npm install recma-nexjs-static-props Usage This plugin is intend

Nov 3, 2022

๐Ÿš€ Using top-level await in AWS Lambda with TypeScript, esbuild and Serverless Framework

๐Ÿš€ Using top-level await in AWS Lambda with TypeScript, esbuild and Serverless Framework

๐Ÿš€ Top-level await in AWS Lamba with TypeScript Articles https://dev.to/oieduardorabelo/top-level-await-in-aws-lamba-with-typescript-1bf0 https://medi

Nov 23, 2022

This Photoshop script exports all top-level layers and groups to cropped PNG and JPEG files and creates a file usable in Tumult Hype 4 based on your Photoshop document.

This Photoshop script exports all top-level layers and groups to cropped PNG and JPEG files and creates a file usable in Tumult Hype 4 based on your Photoshop document.

Export To Hype (Photoshop Edition) This Photoshop script exports all top-level layers and groups to cropped PNG and JPEG files and creates a file usab

Nov 9, 2022

A web application that allows the user to connect through Unstoppable Domains and claim a small block of the site

A web application that allows the user to connect through Unstoppable Domains and claim a small block of the site

FRAGMENTED Summary A web application that allows the user to connect through Unstoppable Domains and claim a small block of the site. Each user will b

Jan 24, 2022
Owner
Neel Yadav
I sort of know what I'm doing.
Neel Yadav
๐ŸŒ How well do you know your top-level domains (TLDs)?

TLD-quiz How well do you know your top-level domains (TLDs)? Sure, you know .com and .net. It's not your first time on the Web. You might even know .i

Andrew Healey 4 Apr 27, 2022
Leaderboard - An app that outputs the names and the score of the players and it uses API's to get all the informations

leaderboard is an app that outputs the names and the score of the players and it uses API's to get all the informations.

zieeco 7 Jul 8, 2022
Loops through a list of Discord tokens in a file to check if they are valid/invalid

Discord Token Checker Loops through a list of Discord tokens in a file to check if they are valid/invalid. Click here to report bugs. Usage Download Z

null 319 Dec 31, 2022
Using decentralized identities with Web 2 to create a no login required website. Built using the Handshake blockchain.

Blending Web 2/3, is this Web .666? ( โ€ขฬ€แด—โ€ขฬ )ูˆ ฬ‘ฬ‘ Learn more by joining the Handshake Discord Community applause is a platform I built using centraliz

Publius Federalist 13 Mar 3, 2022
Send encrypted messages and decrypt them without sharing keys. Built using the Handshake blockchain.

zmsg Encrypt and decrypt messages using AEAD with an ephemeral key Learn more by joining the Handshake Discord Community I noticed that there wasn't a

Publius Federalist 31 Jul 27, 2022
This application lists the scores of players of a certain game (determined by the user), in this app the Leaderboard REST API is used, where the participants and their scores are registered.

Leaderboard this application lists the scores of players of a certain game (determined by the user), in this app the Leaderboard REST API is used, whe

Gonzalo Medina 5 Jul 29, 2022
๐Ÿค–โ€An action that fetches the list of malicious domains on Discord in different providers and creates/updates a JSON file with them from time to time.

Discord Guardian Action ?? โ€This action fetches the list of malicious domains on Discord in different providers and creates/updates a JSON file with t

Dalton Menezes 7 Nov 30, 2022
Create a HTML table from JSON that can be sorted, selected, and post-processed using a simple callback.

Tidy Table Create a HTML table from JSON that can be sorted, selected, and post-processed using a simple callback. Features Extensible HTML/CSS interf

Marc S. Brooks 50 Aug 16, 2022
javascript library to convert a list of objects to a nested json output format, depending on the names in the list

formToNestedJson javascript "library" to convert a list of objects to a nested json output format, depending on the names in the list Basic usage Give

null 2 Aug 2, 2021