[Ethereum] How to add some balance to the address in private blockchain testnet

balancesprivate-blockchain

Geth
Version: 1.6.1-stable
Git Commit: 021c3c281629baf2eae967dc2f0a7532ddfdc1fb
Architecture: amd64
Protocol Versions: [63 62]
Network Id: 1
Go Version: go1.8.1
Operating System: windows
GOPATH=
GOROOT=c:\go

The above is my geth installation, I need to initialize testnet with some default balance for some address – how can I do this? I tried with the genesis.json from https://github.com/ethereum/go-ethereum/wiki/Private-network and initialized the private block chain, created an account, replaced the address in the custom genesis file with that and re-run the init, but it failed with

Fatal: Failed to write genesis block: database already contains an incompatible genesis block (have 15ecff6ddb9d4db4, new 834a88447f2091cc)

How can I add some balance to the address?

Best Answer

You can run the command:

miner.start()

In the geth console. This will start mining and add ether to your default account.

Related Topic