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
4
votes
1 answer

Go-Ethereum | How to connect to public Ropsten(testnet) running on local

Basically I want to connect to the public Ropsten testnet. I run geth on local with several options. (--testnet, --rpc, --rpcapi, console). I thought I can get my (ropsten) account and check how much 'ether' or 'erc20 tokens' that I have on ropsten…
rachel_hong
  • 471
  • 2
  • 6
  • 15
4
votes
1 answer

Could not start mining on my private chain

I'm not able to mine on my private chain via geth console, get stuck in the following step. > miner.start() INFO [01-05|11:11:22] Updated mining threads threads=0 INFO [01-05|11:11:22] Transaction pool price threshold…
Yudao Yan
  • 95
  • 1
  • 7
4
votes
2 answers

Geth light node does not sync

I want to check the balances of my wallets with the geth console. Therefore i did try to use geth in light mode. But when i use: geth console --syncmode light It gets stuck at block number 0 and it doesn't start to sync. Here are some results:…
nivek
  • 151
  • 2
  • 7
4
votes
2 answers

Error: insufficient funds for gas * price + value

I am going through the first tutorial in the Ethereum website. I've compiled the contract code using Remix and have created the following script. I have removed the binary strings for brevity: var _greeting = 'Hello World!'; var…
Matias Faure
  • 822
  • 1
  • 9
  • 20
4
votes
2 answers

go-ethereum - geth - puppeth - ethstat remote server : docker: command not found

I'm trying to setup a private ethereum test network using Puppeth (as Péter Szilágyi demoed in Ethereum devcon three 2017). I'm running it on a macbook pro (macOS Sierra). When I try to setup the ethstat network component I get an "docker…
Arni Gudjonsson
  • 544
  • 9
  • 23
4
votes
2 answers

Web3.js getBalance always showing 0

I would like to get my ethereum wallet balance so i made an app with web3.js and an ethereum node running with go-ethereum. I have some ethers on my wallet and the node is synced, but my balance always show 0 ether. This is my app : var Web3 =…
Curdix
  • 113
  • 1
  • 4
3
votes
1 answer

Waiting for enough suitable peers before syncing

I am running an ethereum node on Windows 11. I am using Geth for my execution client along with Prysm for my consensus client. They have been syncing for the past two days but no data is being written to my hard drive by Geth and no progress is…
3
votes
1 answer

How to access GoEthereum Transaction Trie using LevelDB

I wanted to access Ethereum Transaction Trie using LevelDB, but it's working only for Block 0, for any other block it's not given me any data. Just wondering how does web3.eth.getTransaction() works internally: Here is the code: const Trie1 =…
3
votes
1 answer

Extracting emitted events (logs) from geth transaction trace (debug_traceCall)

When using debug_traceCall, I get a low-level EVM trace of all opcodes and state changes during the execution. This is excessively detailed. When I use default callTracer, I can get a much nicer call tree. However, neither way I cannot seem to be…
pokrovskyy
  • 437
  • 5
  • 8
3
votes
2 answers

Running multiple pods of go-ethereum with common EFS storage on AWS EKS/kubernetes

I am trying to run a go-ethereum node on AWS EKS, for that i have used statefulsets with below configuration. statefulset.yaml file Runningkubectl apply -f statefulset.yaml creates 2 pods out of which 1 is running and 1 is in CrashLoopBackOff…
3
votes
1 answer

ERC-20 Token transfer problem: execution reverted: ERC20: transfer from the zero address

i ve been trying to learn stuff about smart contracts lately, but when i tried to understand how a token transfer works i ve encountered this problem. || execution reverted: ERC20: transfer from the zero address || (ropsten network) the…
Chikanboa
  • 29
  • 1
  • 4
3
votes
1 answer

Ethereum error {"code":-32000,"message":"unknown account"}

I am trying to send a raw transaction with eth.sendTransaction but I am getting an error that says {"code":-32000,"message":"unknown account"}. I am not sure what is causing this and I cant seem to find an answer on the internet. Can anyone help me…
0xKitsune
  • 131
  • 6
3
votes
0 answers

geth node stuck on "Looking for peers"

I'm new to blockchain and trying two create two nodes and execute a transaction using geth. However, when I try to run the geth --mine command, it keeps of printing "Looking for Peers". Can someone please help? geth account new --datadir node1 geth…
3
votes
1 answer

Equivalent for abi.encodePacked

I am using ethers-rs to write a defi app. I need to calculate the CREATE2 address in rust. I couldn't find the equivalent of abi.encodePacked(token0, token1) in rust. The code used in Uniswap's library…
Ganesh Rathinavel
  • 1,243
  • 4
  • 17
  • 38
3
votes
1 answer

How to resolve trace_filter does not exist when deploying balancer sub-graph in graph-node?

I've setup graph-node successfully. After that, I was trying to deploy balancer-subgraph in my graph-node. Sub-graph deployment procedure: clone git clone git@github.com:balancer-labs/balancer-subgraph.git Install dependencies yarn Generate…
Abu Hanifa
  • 2,857
  • 2
  • 22
  • 38
1 2
3
28 29