Hi,
I installed Etehreum on Mac OS X.
Now, when I give command
ethereum console I get this:
++ genesis +++
Root: 7e204dc9cfb7acdf062ff0b8052f7fcb0b7e6593754773967932ce458d134af3
Hash: 32d9162f861a01bc8274e70b3cdb9d688fd7d8566f2f8c25cf1a882f244081c4
2015/03/21 22:32:37 [CHAIN] Last block (#73) e717bef46f40eb0232d6adb79618552dbeeda018b9a6a5dfc54d6071bd6ae463 TD=9884560
2015/03/21 22:32:37 [CLI] Main address 3f72957cb22a8b3fa7875d7d348155b331397bf4
2015/03/21 22:32:37 [CLI] Starting Ethereum(G)/v0.8.6/darwin/go1.4.2
2015/03/21 22:32:37 [P2P Server] Starting Server
2015/03/21 22:32:37 [P2P NAT] mapping error: no devices discovered
2015/03/21 22:32:37 [P2P Discovery] Listening, enode://0eda4354abb5e8833372f5f7cd2c7f852b1fc512e15572daaf17a098026c69d64
[email protected]10.6.6.180:30303
2015/03/21 22:32:37 [Blockpool] Started
2015/03/21 22:32:37 [SHH] Whisper started
2015/03/21 22:32:37 [P2P Server] Listening on [::]:30303
2015/03/21 22:32:37 [SERV] Server started
2015/03/21 22:32:37 [CLI] open console: no such file or directory
And if I give command
ethereum -mine It starts mining.
I need to know the following if these applies with Ethereum:
1. What's my Ethereum Address? Because if ethereum is mining, it must be mining for some address?
2. How can I get the Private Key, Public Key for my Ethereum Address?
3. Just to confirm, the Ether which I'll be mining here are real, right?? If so, I think I read in previous blog posts of Ethereum that the Ethereum network will backup/reset between the testing phases until stable one goes mainstream. I don't remember if I read about how the ethere mined in testing phase will be claimed, or say traded?
Cheers!
Satinder
Comments
//check version (my current one)
$ ethereum version
Ethereum(G)
Version: Frontier - 0.9.1
Protocol Version: 58
Network Id: 0
GO: go1.4.2
OS: darwin
GOPATH=/Users/xxx/xxx/go
GOROOT=/usr/local/Cellar/go/1.4.2/libexec
//get help
ethereum -help
//create account with passphrase (record passphrase)
$ ethereum account new
The new account will be encrypted with a passphrase.
Please enter a passphrase now.
Passphrase:
Repeat Passphrase:
Address: 0xd3e4ce0ed636703642e53489e3552c99809df54c
//check account ID(s)
$ ethereum account
//start mining with a created account
$ ethereum --unlock=d3e4ce0ed636703642e53489e3552c99809df54c:passphrase --mine
//will take a while to complete DAG generation and will use 2 GB of RAM when mining
//To check how much you have mined restart mining with rpc (default is 8545 for go build but can be any port)
//Terminal 1
$ ethereum —unlock=d3e4ce0ed636703642e53489e3552c99809df54c:passphrase --mine --rpc --rpcport “8545”
//Open a second terminal
//check coinbase address
$ curl -X POST --data '{"jsonrpc":"2.0","method":"eth_coinbase","params":[],"id":64}' http://localhost:8545
//Should return this
{
"id": 1,
"jsonrpc": "2.0",
"result": "d3e4ce0ed636703642e53489e3552c99809df54c"
//check client actively mining new blocks
$ curl -X POST --data '{"jsonrpc":"2.0","method":"eth_mining","params":[],"id":71}' http://localhost:8545
//get balance
$ curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getBalance","params":["0xd3e4ce0ed636703642e53489e3552c99809df54c", "latest"],"id":1}' http://localhost:8545