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 --testnetLet's check the fees so we know the amount we need to specify
> ./axe transaction fees -n http://testnet.axentro.io
+ ------------------------------ - ------------------------------ +
| 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 http://testnet.axentro.io --process=2Keep 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 http://testnet.axentro.ioNow lets create a domain for the wallet (the fee is 0.001) - and just set the price to 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:
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:
Last updated
Was this helpful?