Go Ethererum (Geth) Commands

This section describes Go Ethereum (Geth) commands.

The best way to get a list of Go Ethereum commands is to run the "geth help" command:

C:\>\local\bin\geth help

NAME:
 geth - the go-ethereum command line interface

 Copyright 2013-2017 The go-ethereum Authors

USAGE:
 geth [options] command [command options] [arguments...]
   
VERSION:
 1.8.1-stable-1e67410e
   
COMMANDS:
 account     Manage accounts
 attach      Start an interactive JavaScript environment (connect to node)
 bug         opens a window to report a bug on the geth repo
 console     Start an interactive JavaScript environment
 copydb      Create a local chain from a target chaindata folder
 dump        Dump a specific block from storage
 dumpconfig  Show configuration values
 export      Export blockchain into file
 import      Import a blockchain file
 init        Bootstrap and initialize a new genesis block
 js          Execute the specified JavaScript files
 license     Display license information
 makecache   Generate ethash verification cache (for testing)
 makedag     Generate ethash mining DAG (for testing)
 monitor     Monitor and visualize node metrics
 removedb    Remove blockchain and state databases
 version     Print version numbers
 wallet      Manage Ethereum presale wallets
 help, h     Shows a list of commands or help for one command

ETHEREUM OPTIONS:
 --config value     TOML configuration file
 --datadir "C:\Users\herong\AppData\Roaming\Ethereum"  
                    Data directory for the databases and keystore
 --keystore         Directory for the keystore (default = inside the 
                    datadir)
 --nousb            Disables monitoring for and managing USB hardware 
                    wallets
 --networkid value  Network identifier (integer, 1=Frontier, 2=Morden 
                    (disused), 3=Ropsten, 4=Rinkeby) (default: 1)
 --testnet          Ropsten network: pre-configured proof-of-work test 
                    network
 --rinkeby          Rinkeby network: pre-configured proof-of-authority 
                    test network
 --syncmode "fast"  Blockchain sync mode ("fast", "full", or "light")
 --gcmode value     Blockchain garbage collection mode ("full", "archive") 
                    (default: "full")
 --ethstats value   Reporting URL of a ethstats service 
                    (nodename:secret@host:port)
 --identity value   Custom node name
 --lightserv value  Maximum percentage of time allowed for serving LES 
                    requests (0-90) (default: 0)
 --lightpeers value Maximum number of LES client peers (default: 100)
 --lightkdf         Reduce key-derivation RAM & CPU usage at some expense 
                    of KDF strength
  
DEVELOPER CHAIN OPTIONS:
...

Now I am ready to run Geth to join the Ethereum network with a command line interface.

Last update: 2017.

Table of Contents

 About This Book

 Introduction of Ethereum

 Ethereum Blockchain

 Ethereum Mist Wallet

geth - Go Ethereum

 What Is Go Ethererum (Geth)

Go Ethererum (Geth) Commands

 "geth" - Start Ethereum Node

 "geth console" - Ethereum Node Console

 "geth --light" - Ethereum Node Light Mode

 "geth attach" - Geth Client Console

 Run "geth" and "Ethereum Wallet" Separately

 Stop "geth" Ethereum Node

 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

 Managing Ethereum Account

 ethereumfaucet.info - Mining Ether with Browser

 References

 PDF Printing Version