LinuxCommandLibrary

geth

TLDR

Start Ethereum node

$ geth
copy
Sync mainnet
$ geth --syncmode [snap]
copy
Start with console
$ geth console
copy
Attach to running node
$ geth attach
copy
Create new account
$ geth account new
copy

SYNOPSIS

geth [options] [command]

DESCRIPTION

geth (go-ethereum) is the official Go implementation of the Ethereum protocol. It runs a full Ethereum node, enabling blockchain interaction, mining, and smart contract deployment.
The client syncs the blockchain, validates transactions, and provides RPC APIs for applications. It supports multiple sync modes balancing speed and security.
geth is the most widely used Ethereum client for running nodes and development.

PARAMETERS

COMMAND

Subcommand: console, attach, account, etc.
--syncmode MODE
Sync mode: full, snap, light.
--datadir PATH
Data directory.
--http
Enable HTTP RPC.
--ws
Enable WebSocket RPC.
console
Interactive JavaScript console.
attach
Attach to running node.
account CMD
Account management.
--help
Display help information.

CAVEATS

Full sync requires significant disk space. Resource intensive. Mainnet sync takes time.

HISTORY

geth is developed by the Ethereum Foundation as the official Go implementation. It was one of the original Ethereum clients and remains the most popular for running nodes.

SEE ALSO

eth(1), solc(1)

Copied to clipboard