Once you have done with the installation, you can create a wallet for yourself now.
You can generate a new HD wallet address with the following command. Note that you need to set a password for this wallet:
ckb-cli account new
(click here to view response)
$ ckb-cli account new Password: Repeat password: address: mainnet: ckb1q9gry5zgtd230sp6el8qe3e5hrtdgth72fp72yfmtf2vte testnet: ckt1q9gry5zgtd230sp6el8qe3e5hrtdgth72fp72yfmp4jk6t lock_arg: 5b5517c03acfce0cc734b8d6d42efe5243e5113b
In the output message, you can find the following information:
lock_argis needed for configuring your miner software as well as exporting your private key, so please backup it.
addressis the address of the generated wallet.
Export Wallet Private Key
Before your export your private key, you should be aware that your private key is the only key to your tokens and assets. Losing private key or give it to others is as same as losing your tokens or give them away.
You can use this command to export the private key (note that you need to enter your wallet password):
ckb-cli account export --lock-arg <LOCK_ARG> --extended-privkey-path privkey
Please replace the
<LOCK_ARG>part with your own
This command will create a file named
privkey in your current folder. In this file you can find your private key (the first line of the file) and the chain code of the generated HD wallet (the second line).
(click here to view an example
Now you have successfully created your own wallet. Congratulations! You can try to start your own node now.
If you find any problems, please refer to the trouble shooting document.