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

how to uniquely identify user on ETH blockchain

I am currently learning ETH blockchain based DApp development. I want to ask that, if we are developing an eVoting application based on blockchain, then how can we ensure that each citizen is voting only once and votes are calculated properly to…
1
vote
0 answers

Bootnode public address

I am trying to deploy an small private Ethereum network using geth. I have a server running geth configured as a miner in my local network. In the other side I have a droplet in DigitalOcean that I want to use as a bootnode to connect future nodes…
1
vote
1 answer

POA chain on parity mining transaction even when there is no consensus

Hi I am running a POA chain on parity with 3 validators . All 3 validators are sealing blocks which I have verified by getting the block details . Now the issue is that when 2 of the validators go down, the 3rd one still continues sealing which…
1
vote
1 answer

Ethereum Miner.start () does not load on the console

Ethereum Miner.start () does not load on the console? I'm not getting the geth's internal console miner working. Here's how I'm running the node with open options. I'm connecting to this node through another geth using the 'geth attach http:…
marcelo.delta
  • 2,730
  • 5
  • 36
  • 71
1
vote
1 answer

Failed to connect GethNode to external GethNode

i want to connect a local Geth-instance to my private Ethereum Network on a ubuntu Server. System information Geth version: 1.8.12 OS & Version: Ubuntu 18.4 Expected behaviour the local Geth-node is non-miner-node and i would like to send…
T.Richter
  • 33
  • 6
1
vote
1 answer

What is the difference between getPastEvents() vs events.MyEvent({ fromBlock: 0})?

What is the difference between using myContract.getPastEvents() to get past events and using myContract.events.MyEvent({ fromBlock: 0, }) ? Also, if I pass to fromBlock a block number that has not been mined yet, does it work as expected?
Nic Szerman
  • 1,834
  • 18
  • 25
1
vote
0 answers

How to configure Mist wallet connect to my ethereum private-net?

I setup an Ethereum private-net that help me deploy, testing smart contract locally. I just want to have a UI can deploy smart contract and visually testing assets transfer. I think Mist is my first choice. So I want to know how to configure Mist…
Michael Li
  • 53
  • 6
1
vote
1 answer

Running geth on kubernetes

I am running geth full node https://github.com/ethereum/go-ethereum/wiki/geth on Google Cloud platform on a VM instance. Currently, I have mounted a SSD and write the chain data to it. I want to now run it on multiple VM instances and use a load…
kosta
  • 4,302
  • 10
  • 50
  • 104
1
vote
1 answer

Web3.js sendSignedTransaction gives "Error: Failed to check for transaction receipt"

I am using web3js v1.0.0-beta.34 to send signed transactions to a geth node Geth/v1.8.13-unstable-2e0391ea/linux-amd64/go1.10.3 in a loop. Problem: In the initial iterations of the loop, Node.js prints the transaction hash to console. But when the…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
1
vote
1 answer

Erc20 tokens deposit/withdraw on ruby

I use Peatio based exchange. Ethereum deposit/withdraw are working, but Binance coin doesn't work. I can't generate binance coin address. My codes below. Is it wring? I reall need help. require 'net/http' require 'uri' require 'json' class…
user7081194
1
vote
0 answers

geth backup/restore of data added to blockchain using smart contracts

I am using a nodejs application to add data to go-ethereum (geth) local environment using smart contracts and truffle. If for a reason or another anything happens and I need to stop geth and resume it later, I am not able to get the data. To…
Ghassan Zein
  • 4,089
  • 3
  • 19
  • 30
1
vote
0 answers

restarting geth causing loss of data

What I want is stopping geth, changing some parameters in genesis.json file like gasLimit, then resuming geth without loosing data that was previously added by smart contracts. These are the steps: killall geth geth --datadir ./myDataDir init…
Ghassan Zein
  • 4,089
  • 3
  • 19
  • 30
1
vote
0 answers

Geth node logs Killed after uploading smart contract

I'm experiencing an issue with geth. After I upload a smart contract through RPC, the node logs Killed and dies. Does anyone have an idea what the issue could be? Or how I could debug it? geth --networkid=$NETWORK_ID …
ke_wa
  • 1,176
  • 2
  • 10
  • 12
1
vote
1 answer

How to access Azure private node using web3js in Azure websites?

I have setup node in Azure VM (OS Windows) successfully. Below are the commands geth --rpc --rpcport 8545 --rpcaddr 0.0.0.0 --rpccorsdomain "*" --datadir testprivareDir --port "30303" --nodiscover --rpcapi "db,eth,net,web3" --networkid XXXX In…
roytags
  • 99
  • 6
1
vote
0 answers

How do I connect android emulator to a private ethereum blockchain hosted locally?

Since the localhost of running geth instance is 127.0.0.1 and that of emulator is 10.0.2.2. , how can I establish a connection between them??
Rambo
  • 93
  • 9