101 lines
3.2 KiB
Markdown
Raw Normal View History

2022-04-21 02:04:20 +01:00
# Dero Naming Service Cli Tool
This tool allows you to easily, check one or more names if they are free to be registered on the DERO HE Block Chain
and then register the name to your own wallet if you wish to.
2022-04-21 09:18:38 +01:00
Please note that
* This script uses https://dero-node.mysrv.cloud for querying name registration, and if your registration has succeessfully completed.
* This means you do not need a local node to look up or register a name, you only need a wallet.
* The registration process itself happens via your local Wallet RPC, not via remote node.
* You can change the default setting on command line, see --help menu for more info
2022-04-21 08:08:16 +01:00
2022-04-21 02:04:20 +01:00
## Usage
2022-04-21 03:52:44 +01:00
Please see example usage below
2022-04-21 02:04:20 +01:00
### Check if name is already registered
```
$ ./dero_ns_cli.pl --name Hansen33
Dero Name Service Cli Tool - register name to wallet
Name: (Hansen33) is taken by this address (dero1qy3dspltmkakl4gzpfvhc35kxxqpp2ypd9ehz72puyxhgs0sqglj6qgqt28kd)
$ ./dero_ns_cli.pl --name KingZulo
Dero Name Service Cli Tool - register name to wallet
2022-04-21 03:54:56 +01:00
Name: (KingZulo) is AVAILABLE to register
2022-04-21 02:04:20 +01:00
```
### Check if list of names are already registered
```
$ cat list
Captain
Azylem
Nelbert442
KingZulo
2022-04-21 02:04:20 +01:00
$ ./dero_ns_cli.pl --check-list ./list
Dero Name Service Cli Tool - register name to wallet
Name: (Captain) is taken by this address (dero1qy9s60kf40wcwhcf9ay6dgpz3gh748x6eq0cpghs4m39u55ecnrlzqg0vq5sy)
Name: (Azylem) is taken by this address (dero1qyfk5w2rvqpl9kzfd7fpteyp2k362y6audydcu2qrgcmj6vtasfkgqq9704gn)
Name: (Nelbert442) is taken by this address (dero1qytygwq00ppnef59l6r5g96yhcvgpzx0ftc0ctefs5td43vkn0p72qqlqrn8z)
Name: (KingZulo) is AVAILABLE to register
2022-04-21 02:04:20 +01:00
```
### Register name to your wallet
```
2022-04-21 03:52:44 +01:00
$ ./dero_ns_cli.pl --name KingZulo --register
2022-04-21 02:04:20 +01:00
Dero Name Service Cli Tool - register name to wallet
2022-04-21 03:54:56 +01:00
Name: (KingZulo) is AVAILABLE - and will be registered in a little while
Waiting [75/120]...
Wallet connected (127.0.0.1:10103)
2022-04-21 02:04:20 +01:00
Checking wallet RPC (127.0.0.1:10103)
Wallet connected (127.0.0.1:10103)
2022-04-21 03:52:44 +01:00
Name: (KingZulo) registered on the DERO Stargate with TX ID (5f0abf21b897dc432a52633cdcbb47d68fde749a18b58764f39a696bd6eabb88)
Waiting for registration to complete [2/120]...
Name: (KingZulo) is now registered to this address (dero1qy3dspltmkakl4gzpfvhc35kxxqpp2ypd9ehz72puyxhgs0sqglj6qgqt28kd)
Congratulations your name was successfully registered!
2022-04-21 02:04:20 +01:00
```
(PS: If anyone want KingZulo I'm kinda willing to give it up)
#### Run on Test Net
Specify testnet wallet rpc port and a daemon wallet rpc port like below
```
$ ./dero_ns_cli.pl --name KingZulo --register --wallet-rpc 127.0.0.1:40403 --daemon-rpc 127.0.0.1:40402
```
2022-04-21 03:52:44 +01:00
2022-04-21 02:14:29 +01:00
## Installation
Install dependencies and run the script with the following command
```
$ sudo apt install libwww-curl-perl libjson-perl -y
$ git clone https://git.mysrv.cloud/MySrv.Cloud/Dero_Name_Service_Cli_Tool.git
$ cd Dero_Name_Service_Cli_Tool
$ ./dero_ns_cli.pl --help
```
2022-04-21 02:04:20 +01:00
## More About Dero
2022-04-21 03:52:44 +01:00
Dero Stargate
2022-04-21 02:04:20 +01:00
2022-04-21 09:18:38 +01:00
* Website: [https://dero.io/](https://dero.io/)
* Wallet and code: [https://github.com/deroproject/derohe/](https://github.com/deroproject/derohe/)
2022-04-21 02:04:20 +01:00
## More about Dero Smart Contracts and how to use them
2022-04-21 02:04:20 +01:00
2022-04-21 03:52:44 +01:00
* [Nameservice](https://docs.dero.io/rtd_pages/dev_dvm.html#nameservice)
* [DVM Example](https://github.com/deroproject/documentation/tree/master/DVMDOCS/examples/nameservice)
2022-04-21 02:33:26 +01:00