Registering your username on DERO blockchain

Step 1] based on your OS download latest binaries or compile from source DERO daemon and wallet. Darwin files are for Mac OS.

Step 2] Create and register your wallet.

Step 3] After wallet setup and registration. Run wallet again with following rpc-server option:
./dero-wallet-cli-linux-amd64 --rpc-server --wallet-file=YouWalletName.db

Step 4] Check whether username is already registered by following cmd:

curl http://127.0.0.1:10102/json_rpc -d 
'{"jsonrpc":"2.0","id":"0","method":"nametoaddress","params":{"name":"TESTUSERNAME"
 }}' -H 'Content-Type: application/json'

NB: Replace localhost(127.0.0.1) to explorer.dero.io if you are not running your daemon.
NB: If output is something leaf not found then username is free and available.

Step 5] Register and associate DERO wallet to username.

 `curl http://127.0.0.1:10103/json_rpc -d 
'{"jsonrpc":"2.0","id":"0","method":"scinvoke","params":{"scid":"0000000000000000000000000000000000000000000000000000000000000001","ringsize":2,
 "sc_rpc":[{"name":"entrypoint","datatype":"S","value":"Register"}, 
{"name":"name","datatype":"S","value":"TESTUSERNAME" }] }}' -H 
'Content-Type: application/json'`

TXID of username registration will be returned, Check this TXID in explorer.

NB: Replace TESTUSERNAME in above curl commands to your username.
NB: Windows users can download curl from here.
NB: For more details visit here.
NB: Can register username of minimum 6 bytes(size) only.
NB: Replace localhost(127.0.0.1) to explorer.dero.io if you are not running your daemon.

4 Likes

Run fllowing cmd to transfer username to another DERO wallet address.

curl http://127.0.0.1:10103/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"scinvoke","params":{"scid":"0000000000000000000000000000000000000000000000000000000000000001","ringsize":2, "sc_rpc":[{"name":"entrypoint","datatype":"S","value":"TransferOwnership"}, {"name":"name","datatype":"S","value":"Username_To_Transfer" }, {"name":"newowner","datatype":"S","value":"dero1qypj3sctlt7mefhvdhrvrygj55m40ugl7ml2dukzypxdtd2agpgsjqq2v3n6h" } ] }}' -H 'Content-Type: application/json'

Replace username & DERO-wallet-address in above cmd :
Username_To_Transfer -> Username to transfer
dero1qypj3sctlt7mefhvdhrvrygj55m40ugl7ml2dukzypxdtd2a -> Another wallet address.