Registering a domain

Since registering a domain is free you can easily do this from the axe command line client. Lets see an example:

  • First create a wallet (if you already have one you can skip this step) on the testnet

> ./axe wallet create -w testnet-wallet-1.json --testnet
  • Let's check the fees so we know the amount we need to specify

> ./axe transaction fees -n

  + ------------------------------ - ------------------------------ +
  |                         action |                            fee |
  | ------------------------------ | ------------------------------ |
  |                           send |                         0.0001 |
  |                        hra_buy |                          0.001 |
  |                       hra_sell |                         0.0001 |
  |                     hra_cancel |                         0.0001 |
  |                   create_token |                             10 |
  + ------------------------------ - ------------------------------ +

As you can see the fee for buying a domain is 0.001 so with a new wallet we will need to do a bit of mining to generate some coins we can use. So let's fire up a miner against the testnet:

> ./axem -w testnet-wallet-1.json --testnet -n --process=2

Keep checking your wallet and when you have some coins in your wallet then you are ready to keep going (it could take about 10-15 mins):

> ./axe wallet amount -w testnet-wallet-1.json -n
  • Now lets create a domain for the wallet (the fee is 0.001) - and just set the price to 0

> ./axe hra buy -w testnet-wallet-1.json -n -f 0.001 --price=0

If it was successful you will get a success message that includes a transaction id - once this transaction is processed the domain will be available. So we can check the transaction id to see if it's been processed:

> ./axe transaction transaction -n -t dd49e07900bf0187c97acce175422231f2983f0b5b8f6a7cd6aaf885c4728d76

after a while the transaction will be processed and you will see a result saying the transaction was found.

Once it reports that the transaction has been processed we can check the domain can be resolved and if all is good we can start using it:

> ./axe hra resolve -n

show information of domain
resolved : true
status   : acquired
price    : 0

Last updated