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
2
votes
0 answers

How to parse the node information in the geth/nodes directory by leveldb?

I want to get all the node IP addresses of ETH, so I need to parse the geth/nodes directory, but I can't find the specific data format and cannot parse it. I found a same problem, but there is no…
Z-LL
  • 21
  • 3
2
votes
1 answer

Why won't this smart contract function work with a gas limit of 1 billion?

Using git, I got the ethereum source code and built it myself. And connected with Remix IDE's web3 provider environment. In the code below, the nums() function was executed well, but the add() function exceeded the gas limit. A.sol pragma solidity…
atti
  • 23
  • 2
2
votes
2 answers

Can't install older version 1.8.27 of Geth on Ubuntu 16.04

I have tried sudo apt-get install ethereum sudo apt-get install ethereum=VERSION And sudo apt-get upgrade ethereum To install a specific version of Geth but I can't.
BP1997
  • 41
  • 5
2
votes
0 answers

geth account import or new command doesn't create an account; instead returns Killed

I'm trying to create/import a new ethereum account using geth, but instead of returning public address, geth returns Killed. I'm using quorumengineering/quorum Docker image on a Kubernetes cluster. Here's account creation script: echo -n…
Moazzem Hossen
  • 2,276
  • 1
  • 19
  • 30
2
votes
1 answer

geth ethereum client connect to ganache

I want to set up a private Ethereum Testnet on different computers within one network. I have my private Computer with a working web3.py Implementation connected to a Ganachi Testnet. I can deploy Smart Contracts from a program written in python…
2
votes
1 answer

Istanbul-tools installation error: github.com/ethereum/go-ethereum/crypto/bn256/cloudflare.gfpMul: relocation target runtime.support_bmi2 not defined

I am trying to install Istanbul-tools to run an IBFT ethereum network as shown in this tutorial here https://medium.com/getamis/istanbul-bft-ibft-c2758b7fe6ff I am installing istanbul-tools via their makefile using go build -v -o…
Yanzal
  • 113
  • 1
  • 8
2
votes
4 answers

How to correctly send RPC call using Golang to get smart-contract owner?

Update Since I'm not able to achieve this using the approach in this question, I created my own library to do the same thing (link). It doesn't rely on go-ethereum package but use the normal net/http package to do JSON RPC request. I still love to…
Zulhilmi Zainudin
  • 9,017
  • 12
  • 62
  • 98
2
votes
2 answers

Ethereum wallet shows it has ethers but geth does not show the balance

I am starting to learn ethereum. I have downloaded the Ethereum Wallet, created two accounts and using Rinkeby faucet I got 3 ethers in one of the account. I can see the balance in my wallet. I then ran geth --testnet --datadir d:\data and it…
unni
  • 63
  • 8
2
votes
1 answer

What gonna happen if two geth clients( in two different machines) running with the same nodekey file (node id) within the Mainnet?

If someone copies the nodekey to another machine, and runs the geth with that key. Test it, just don't quite understand the underlying mech.
Zalberth
  • 308
  • 1
  • 2
  • 12
2
votes
1 answer

The output length of bootnode -writeaddress command is 64 bytes, not 128 bytes as expected, why?

I want to get the first part of enode url format, which is hexadecimal node ID, by compiling the source code from ethereum, I build and run cmd/bootnode/ from the goland, with my priviate key supplied, the command is like this: bootnode -nodekeyhex…
Zalberth
  • 308
  • 1
  • 2
  • 12
2
votes
1 answer

How to make a Docker container talk to geth on local host

I have a simple python script using web3 Dockerized and I'm trying to connect to geth.ipc on local host and I can't seem to connect to it. Is there a way to do it? Python: from web3 import Web3 web3 =…
Eric
  • 25
  • 4
2
votes
1 answer

How does ethereum handle duplicate transaction in different world state which means one tx is valid and the other not?

step1: I create a smart contract call transaction TX and send it to ethereum. step2: The TX is validated and broadcast to other nodes. step3: Evm execute the TX failed(maybe because solidity function return err, and so on). step4: Someone else…
Gang Zhao
  • 126
  • 8
2
votes
1 answer

Expose securely your network to make possible anyone can hit your smart contract

Im implementing a ethereum PoA network using go-ethereum I have deployed a ERC20 Token on the network, and the idea is that the network must be accessed from any wallet on the internet (i.e metamask, myetherwallet, etc) The idea for this network is:…
Marcos Martínez
  • 545
  • 2
  • 9
  • 24
2
votes
1 answer

eth.sendTransaction from eth.coinbase makes multiple transactions and decrease the eth.coinbase balance

Im working on a distributed application using Ethereum, the go-ethereum implementation (Geth). On a Digital Ocean droplet (Ubuntu 16.04) i have installed geth. I have created a structure like this: devnet$ tree -L 2 . ├── accounts.txt ├──…
Marcos Martínez
  • 545
  • 2
  • 9
  • 24
2
votes
1 answer

web3j Error processing transaction request: insufficient funds for gas * price + value

Following this tutorial https://github.com/web3j/web3j Started the geth client as a private network. Here is the contract code pragma solidity ^0.4.10; contract Counter { uint256 counter =0; function increase() public { …
swaheed
  • 3,671
  • 10
  • 42
  • 103