Questions tagged [go-ethereum]

Go Ethereum (short: Geth) is a Golang implementation of the Ethereum protocol.

Go Ethereum (short: Geth) is a Golang implementation of the Ethereum protocol. Geth is the most used client for Ethereum nodes currently.

Getting started

Getting started with Go Ethereum is simple, the only thing you require is the geth binary. Please refer to the developer documentation for a beginner tutorial on how to get started with the Go Ethereum API.

Building the source

For prerequisites and detailed build instructions please read the Installation Instructions on the wiki.

Building geth requires two external dependencies, Go and GMP. You can install them using your favourite package manager. Once the dependencies are installed, run

make geth

Executables

Go Ethereum comes with several wrappers/executables found in the cmd directory:

  • geth: Ethereum CLI (ethereum command line interface client)
  • bootnode: runs a bootstrap node for the Discovery Protocol
  • ethtest: test tool which runs with the tests suite
  • evm: is a generic Ethereum Virtual Machine
  • disasm: disassembles EVM code
  • rlpdump: prints RLP structures

Command line options

geth can be configured via command line options, environment variables and config files.

Geth comes with extensive build in help. To get the available options:

geth help

For further details on options, see the wiki.

6342 questions
43
votes
3 answers

how to unlock the account with geth?

when I use the web3 interface to sign on msgs, it tell me that the account should be unlocked, how can I manage this with geth and what exactly does unlocking mean?
Wang
  • 2,416
  • 4
  • 19
  • 28
40
votes
4 answers

Error: account unlock with HTTP access is forbidden when unlock an account in Geth console

personal.unlockAccount(eth.accounts[0],"") Error: account unlock with HTTP access is forbidden I run Geth in a Docker container and use docker exec -it bootstrap geth --datadir=~/.ethereum/devchain attach to exec the Geth console.
Wayne
  • 401
  • 1
  • 4
  • 3
36
votes
6 answers

Can't send transaction -- "Exceeds block gas limit" or "Intrinsic gas too low"

I'm trying to send Ether using geth 1.3.5, like this: eth.sendTransaction({ from: eth.accounts[0], to:'0x[ADDRESS_HERE]', value: web3.toWei(5, "ether"), gas:21000 });` And I'm getting "Exceeds block gas limit" When I try: with gas=5000 I…
Dan Sandberg
  • 463
  • 1
  • 4
  • 5
29
votes
2 answers

Is there a way to stop the Geth console from printing syncing information?

Is there a way to stop the Geth console from printing syncing information? I start Geth with geth console. Actually, I do not want to see all that syncing information constantly. Can I turn it off somehow without using geth attach?
Vesa
  • 1,322
  • 2
  • 16
  • 30
26
votes
2 answers

Understanding logs and log blooms

I'm new to Ethereum and I'm struggling to understand how logs are stored and can be read using geth and plain JSON-RPC (not web3.js). There's a bit of documentation out there and some posts but I'm looking for a more plain English explanation. So…
migu
  • 941
  • 2
  • 10
  • 18
23
votes
1 answer

In geth, `eth.syncing` gives `false` even when blocks are imported

I issue eth.syncing and get false even when at the same time blocks are imported. Is this correct behaviour? Using geth version 1.4.6
TMOTTM
  • 1,953
  • 2
  • 14
  • 23
21
votes
2 answers

How to view latest block number of a geth node in the console?

How to get information about the state of the blockchain on a geth node? There are mentions of admin.chainSyncStatus in the documentation, but it is undefined on my 1.4.0 node. The admin.nodeInfo shows a hash for the head block, but not the…
redfish
  • 497
  • 1
  • 5
  • 9
21
votes
4 answers

Full list of geth terminal commands

Is there a comprehensive list of the commands available in the geth terminal anywhere? (eg. miner.start(), eth.accounts, admin.nodeInfo, etc.)
Kris Randall
  • 911
  • 2
  • 8
  • 15
18
votes
7 answers

How to call "geth attach" on --testnet better than writing full path?

I want to connect to my running geth --testnet. If I run geth --testnet attach, just like geth attach I get : Fatal: Unable to attach to remote geth: dial unix /user/.ethereum/geth.ipc: connect: no such file or directory Which is normal, because…
Teleporting Goat
  • 1,516
  • 1
  • 13
  • 33
17
votes
6 answers

Is there the start/stop script of geth after Debian/Ubuntu booting?

Is there any start/stop shell script for geth which is executed after Debian or Ubuntu OS boot up? For example, startup scripts usually located under /etc/init.d/ /etc/rc.local
Satoshi Nakanishi
  • 5,749
  • 7
  • 38
  • 57
14
votes
1 answer

geth init, what are the arguments?

this command works but yields a warning of future removal so I'd like to use new option init : ➜ ~ go-ethereum/build/bin/geth --datadir="~/testgeth/" --genesis ~/testgeth/customgenesis.json --port "30304" --networkid 6776 --rpc…
euri10
  • 4,640
  • 5
  • 24
  • 55
12
votes
4 answers

How do you configure geth to use coinbase?

I'm a novice. I'm looking for instructions on how to configure geth so it sends my mined eth to coinbase. In my head, I think the process is: Sync the blockchain geth --datadir /data/ethData --autodag --verbosity 1 wait for it to finish. Get…
Albert T. Wong
  • 241
  • 1
  • 2
  • 5
11
votes
4 answers

Ethereum private chain resets back to block 0 when restarted

I am currently running the latest geth 1.8.1 Iceberg version. I set up a private ethereum network as per tutorial and everything including mining works fine, but every time I restart geth - the chain resets back to block number 0, all the mining…
Saliya Perera
  • 113
  • 1
  • 4
11
votes
3 answers

Geth not syncing on testnet

I'm trying to run geth on a new mac and it gets stuck when trying to sync. I'm running geth --testnet --syncmode "fast" This is the console output: INFO [01-06|11:33:20] Starting peer-to-peer node instance=Geth/v1.7.3-stable/darwin-amd64/go1.9.2…
pabloruiz55
  • 7,686
  • 2
  • 17
  • 38
11
votes
1 answer

how to produce enode from node key?

What is the algorithm to produce a bootnode's enode url ? For example, I have this data: Node key: 59233b25bfa4c214a8713e07a395a5d11478de10f36c6c80ba5369541f73bc44 IP: 127.0.0.1 Port: 30303 From these 3 fields how do I create the enode url ? What…
Nulik
  • 4,061
  • 1
  • 18
  • 30
1
2 3
44 45