Start Mining
This document describes a quick guide for mining on the WorldLand network.
WARNING
GPU mining is not supported yet. WorldLand currently uses CPU-based ECCPoW mining.
Generating Account
Skip this section if you have a pre-created account in an external wallet.
Generate a new account in the WorldLand console:
> personal.newAccount("YOUR_PASSWORD")Returns data that looks like:
INFO Your new key was generated address=0xb8C941069cC2B71B1a00dB15E6E00A200d387039
WARN Please backup your key file! path=/home/user/keystore/UTC--...
WARN Please remember your password!
"0xb8c941069cc2b71b1a00db15e6e00a200d387039"DANGER
Be careful not to forget your password! There is no way to recover it.
You can check the list of currently added wallet addresses via the eth.accounts command:
> eth.accounts
["0xb8c941069cc2b71b1a00db15e6e00a200d387039"]Mining
Check Balance Before Mining
Before mining, check your current balance to calculate the amount of $WL mined:
> eth.getBalance("YOUR_ADDRESS")Or use:
> eth.getBalance(eth.accounts[0])Mining Commands
| Command | Description |
|---|---|
miner.setEtherbase(address) | Sets the miner's address. Mining rewards will be sent to this account. |
miner.start(threads) | Start mining with the specified number of threads. |
miner.stop() | Stop mining. |
Set Miner Address
> miner.setEtherbase(eth.accounts[0])Start Mining
> miner.start(1)TIP
If your CPU has enough cores, you can use a higher number of threads for faster mining.
Stop Mining
> miner.stop()Check Mined Balance
After mining, check the amount of mined $WL:
> eth.getBalance(eth.accounts[0])INFO
The result is in wei (the smallest unit of $WL), where 10^18 wei = 1 $WL. To display the balance in $WL:
> web3.fromWei(eth.getBalance(eth.accounts[0]), "ether")Check Mined Block in Explorer
You can check the contents of mined blocks in the Block Explorer. Search by block number or by your wallet address.
Import WorldLand Account to MetaMask
MetaMask → WorldLand
- Open MetaMask and navigate to Account Details
- Click Export Private Key and enter your password
- In the WorldLand console, import the key:
> web3.personal.importRawKey("PRIVATE_KEY", "PASSWORD")WorldLand → MetaMask
- Generate a new account in WorldLand console
- Find your key file in
YOUR_DATADIR/keystore- Default location:
~/.ethereum - Windows:
C:\Users\[Username]\AppData\Local\Ethereum\[seoul/gwangju]\keystore
- Default location:
- Open MetaMask → Import Account → Select JSON File
- Import the key file and enter your password
TIP
This import process may take up to 5 minutes.