Connect MetaMask to Local "geth" Node

This section describes how to connect MetaMask to the 'geth' on the local host.

The MetaMask wallet can also be connected to the local Ethereum private network.

Here is what I did to connect MetaMask extension on Chrome to my Ethereum private network running by the "geth" node.

1. Run the "geth" node on my private network:

C:\> \herong\bin\geth --datadir \herong\Ethereum\personal 
   console 2>> geth-personal.log

> eth.blockNumber

2. Turn on the RPC listener:

> admin.startRPC()
true

> admin.startRPC()
Error: HTTP RPC already running on localhost:8545

3. Start MetaMask on Chrome and select "Localhost 8545" from the network selection dropdown.

4. Wait few seconds, MetaMask will be connected to the "geth" node through http://localhost:8545.

Connect MetaMask to Local Private Network
Connect MetaMask to Local Private Network

Table of Contents

 About This Book

 Introduction of Ethereum

 Ethereum Blockchain

 Ethereum Mist Wallet

 geth - Go Ethereum

 Testnet - Ropsten network

 Private Ethereum Network

 64-Bit "geth" for Private Ethereum Network

 Private Network with Custom Genesis Block

 Transferring Funds between Ether Accounts

MetaMask - Browser Based Ethereum Wallet

 What Is MetaMask

 Install MetaMask Extension for Chrome

 Setup MetaMask Extension for Chrome

 View Ethereum Account Address in MetaMask

 Add "Ropsten Test Network" in MetaMask

 Get Free Ether from faucet.metamask.io

 Get Free Ether from faucet.dimensions.network

 Get Free Ether from faucet.ropsten.be

Connect MetaMask to Local "geth" Node

 Transfer Ether Fund to MetaMask Account

 Send Ether from MetaMask to Private Network Failed

 Private Network ID Must Match "chainId"

 Send Ether from MetaMask to Private Network

 Process MetaMask Transfer Transaction

 Download and Read MetaMask State Logs

 View Account QR Code in MetaMask

 Export Private Key and Retire MetaMask

 Import Private Key to "geth" Account

 Managing Ethereum Account

 Mining Ether with Your Computer

 Archived Tutorials

 References

 Full Version in PDF/EPUB