Mining Ethereum with Mac: Beginner Guide

Ethereum is an open-source, public, blockchain-based distributed computing platform featuring smart contract (scripting) functionality. It provides a decentralized Turing-complete virtual machine, the Ethereum Virtual Machine (EVM), which can execute scripts using an international network of public nodes. (from Wikipedia)

To start mining with Mac, you need the followings:

  1. macOS 10.10+
  2. Internet connection
  3. An Ethereum wallet (no worry, you can obtain one in Step 2)
  4. lots of patience (there are only 4 steps in this guide, be sure to read it through)

Step 1: Install Geth, the Command-line Interface (CLI) for Ethereum mining

Issue this command in Terminal (access Terminal via Spotlight, or in Applications > Utilities) :

After few minutes, the command geth will be installed. Alternatively if you have Homebrew installed, you can install Geth via:

Step 2: Obtain a Ethereum wallet

There are a lot of Ethereum wallets in the Internet, you can obtain one from Ethereum official website or Freewallet. I prefer the latter one, as it has mobile App interface.

Once you obtained the wallet, it will display an address to receive money, for example:

You can use this address to receive the earned Ethereum from mining.

Step 3: Setup Geth

Create your Geth account using:

You’ll be prompted to enter a password for your new account.
REMEMBER this password. If you lose the password, you will not be able to access the account anymore.

Next we need to synchronize the Ethereum database with:

It will take an hour to finish. After sync is complete, we can launch the Geth console (very powerful) :

The output will look like this:

There are few main things you can do in the the console:

  1. Manage accounts
  2. Start transaction (transfer credits) between accounts
  3. MINING !

Step 4: Start Mining

To start mining, issue this command:

where 8 is the number of threads.

To stop mining, issue this command:

To obtain the current hash rate in H/s, you can use:

which means you’re mining at 234,567 hashes per second.

That’s all you need for Ethereum mining. Easy peasy, right?

What’s Next?

We mentioned earlier that we can manage the accounts via Geth console. Here’s how to do so.

  1. List Accounts

2. Check Account Balance

After your hard work in mining, you will receive some Ethers in your coinbase. To check the account balance, you can use:

That means you’ve 1552 Ether available for transaction.

3. Send Ether

First you have to unlock your coinbase in order to send Ether:

After you entered a correct passphrase, your coinbase will be unlocked and it’s available to send transactions.

Assume you want to transfer 1 Ether to your wallet, you can issue this command:

The resulting transaction is 0xeeb77b211e7d9be66232ed70c2eff1bcc5d5fd9ed61d776fbc5cff45b5bf8bf3 . You’ll receive your amount in your wallet shortly.

4. Estimating the time required for finding a block:

5. Exit the Console

To leave the console, use the following command:

That’s all for this beginner guide. If there is any questions, please ask in comment below.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Raptor Kwok

Raptor Kwok

I write stuffs: novels, programs, mobile apps, journal papers, book chapters, etc.