Questions tagged [go-ethereum]

go-ethereum, also known as geth, is a Go implementation of the Ethereum protocol. Use this tag for questions about creating or writing code for a geth-based Ethereum service.

go-ethereum is the most widely used client implementation for Ethereum.

Command Line Options

Install on Mac

Install brew...

brew update
brew upgrade

Install Ethereum

brew tap ethereum/ethereum
brew install ethereum

Install on Windows

Download the latest stable binary, extract it, download the zip file, extract geth.exe from zip, open a command terminal and type:

chdir <path to extracted binary>
open geth.exe

Install on Linux

sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum
430 questions
1
vote
1 answer

Gradle sync error for go ethereum

In the app's build.gradle file, I have included the maven central repository and added the dependency apply plugin: 'com.android.application' repositories { mavenCentral() } dependencies { compile 'org.ethereum:geth:1.8.7' } But…
Rambo
  • 93
  • 9
1
vote
1 answer

eth.estimateGas fails with contract address as second parameter

Newbie. There is a go-ethereum method: eth.estimateGas({from:'firstAccount', to:'secondAccount'}) that works well, but same method with contract address like: eth.estimateGas({from:'firstAccount', to:'contractAddr'}) fails with error gas…
Vadim Filin
  • 342
  • 3
  • 12
1
vote
1 answer

Intermittent "Read time out" errors when using web3.py to query remote ethereum node

I am trying to run some web3.py function calls to retrieve data from a remote Ethereum geth node running Rinkeby testnet hosted on an AWS EC2 Linux instance. I set up my provider like this from local Python3 interpreter and it connects successfully…
Initial Commit
  • 497
  • 3
  • 14
1
vote
1 answer

web3 json rpc error "" when attempting transactions

We're using web3 to connect to the rinkeby test ethereum network. When doing so through geth, via localhost, with the below web3 command: var web3 = new Web3('http://localhost:8545'); We don't get any errors. We use this command to start geth: geth…
rofls
  • 4,993
  • 3
  • 27
  • 37
1
vote
1 answer

How are ERC20 token balances stored on the Ethereum blockchain

I am really confused about how ERC20 Token Balances are stored on the chain. It appears that all balance data are stored as an member mapping variable: contract TestCoin is ERC20Interface { ... mapping(address => uint) balances; ... I…
KurtZ
  • 11
  • 2
1
vote
0 answers

Not able to compare strings on Mist

I have created a contract where I am taking 2 Hashes from the user and trying to compare them both which in return would give a boolean value of true or false. It works good on remix but when I try to run the contract on Mist the compareString…
Vishva Patel
  • 105
  • 1
  • 1
  • 6
1
vote
2 answers

Ethereum Blockchain: testnet environment setup

In way to skip the need of trusting a third party and to skip the full download of the blockchain on my PC, I would like to setup a full node syncing an ethereum testnet blockchain on a local server and then connect my PC to this server, using a…
1
vote
0 answers

Solidity: Why is this simple storage contract not working?

I'm practicing by creating a simple storage contract, but I can't store or retrieve values from the array "numbers." The uint "structID" does not increment and function "testRetrieve" only returns 0 for the correct indexes. The fact that…
Coalited
  • 99
  • 3
1
vote
1 answer

Geth how to keep block chain status?

Fedora 27, CentOS 1708, Go-ethereum 1.8.1 I am trying to make private block chain and coin using that for study. Genesis.json: { "config": { "chainId": 42, "homesteadBlock": 0, "eip155Block": 0, "eip158Block": 0 …
Jeong Hansol
  • 135
  • 1
  • 12
1
vote
1 answer

Ethereum private blockchain empty blocks mining

I have set up a private block chain with 2 nodes 1 being a miner node . However we are seeing lots of empty blocks being mined . i tried the solution suggested at this link…
redeemed
  • 471
  • 7
  • 22
1
vote
0 answers

Why does admin.addPeer() work from certain nodes but not others?

I noticed that with a node on my AWS instance and geth node on my laptop, my AWS node can add my laptop as a peer, but my laptop cannot add my AWS instance. Both nodes use a similar geth command line to the following: geth --identity "node2" --rpc…
Coalited
  • 99
  • 3
1
vote
1 answer

CMD log to file not working for Geth.exe

I'm using the below code to log output of a cmd call to a file however it's not working at times. System.Diagnostics.Process process = new System.Diagnostics.Process(); System.Diagnostics.ProcessStartInfo startInfo = new…
JD_
  • 23
  • 2
1
vote
0 answers

Transactions created using web3.py are stuck in geth queue and not broadcasted to rinkeby

I am running a geth node synched to rinkeby network. I set up some automated services that filter solidity events and create transactions(web3.py) when certain events are received. This worked fine for a while, but at the moment all my new…
1
vote
1 answer

How does it the geth ethereum platform to automatically connect to the nodes that are in the main network of Ethereum?

I have tried to make connection between several nodes in my private network, but I do it with a direction enode, but Ethereum network does it without knowing my address enode, I want to know what kind of p2p communication protocols used so that all…
1
vote
1 answer

Node.js/geth : executing js creates zombie process and stops , possible resource leak

I'm running a js code connecting on web3 package to JSON RPC API for geth. The code goes through every transaction of incoming block and skips if its not an internal wallet , if it is then sends the info to another server through http request.…
Codex
  • 569
  • 2
  • 6
  • 22