Start Mining
This document describes a quick running guide for Miner
Generating account
Skip this section if you have a pre-created account in an external wallet. Please see this link for a guide to creating an account on Metamask.
You can improve account security by utilizing Clef, an external account management tool. See the Security topic for details.
Generating new account:
returns data that looks like:
Be careful not to forget your password!
personal.newAccount("YOUR_PASSWORD")
returns your wallet address. The example above returned the wallet address "0xb8c941069cc2b71b1a00db15e6e00a200d387039"
.
You can check the list of currently added wallet addresses via the eth.accounts
command.
Mining
Check account's balance
Before mining, To calculate the amount of WLCs mined, you have to check current balance of miner's account. You can check the balance by the eth.getBalance("YOUR_ADDRESS") commands.
Or use
First we have to set miner's address. For this, we will use 3 commands
miner.setEtherbase(address)
It sets miner's address. Mining reward will be sent to this account
miner.start(number of threads)
Start mining. You can set how many threads you will use. I will use 1 thread
If your CPU has enough core, you can use higher number. It will work faster.
miner.stop()
Stop mining
GPU mining is not supported yet :(
Setting miner's address:
Starting mining:
Stopping mining:
After mining, check the amount of mined WLCs:
Exactly wei, not ether that 10^18 wei
is equal to 1 WLC
. wei is small unit of WLC like satoshi of bitcoin. In order to show the balance in ether use the below command.
Last updated