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.