[Ethereum] Eth address can’t be used for mining

addressescpp-ethereumethereum-classicmining

I'm trying to mine from my linux, but when I run the following command:

ethminer -F http://ethereumpool.co/?miner=4@ERroYPhmyUFMgPNRJEDNBlaBlaBla@Optional

I get error

JSON_PARSE_ERROR: The JSON-Object is not JSON-Valid:  Invalid Ethereum address length

However when doing it with a hex address:

ethminer -F http://ethereumpool.co/?miner=10@0x54e8efbd6138011efe9b028e489f6a0bc650e451@OptionalRigName

I don't get an error, however the 0xEtc is a dummy value.

How can I find out the hex value of my ETC wallet address? Or am I approaching this wrongly?

I followed instructions in https://ethereumpool.co/how/

Best Answer

The address is contained, by default, in the name of the account file storing the private key corresponding to that address.

If you do not have an Ethereum client, download geth (since it's the most used right now and run the commands:

mkdir myMiningDir
geth --datadir myMiningDir account new
# Enter and reenter the passphrase
cd keystore
ls 
# You should see your next account as a file with the name <account address>--<timestamp>

Make sure you write down/remember the password for that account otherwise you won't be able to spend any ether from its balance.

Related Topic