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

Ethereum client-go RPC response 403 "invalid host specified"

I'm running ethereum/client-go docker image with the following flags: docker run -p 8545:8545 ethereum/client-go --rpcapi personal,db,eth,net,web3 --rpc --rpcaddr 0.0.0.0 --rpccorsdomain * --rinkeby This image is running on machine A and I can…
gshock
  • 584
  • 7
  • 18
6
votes
9 answers

REMIX | Not possible to connect to the Web3 Provider

I had an error to run on web3 provider (localhost:8545) Not possible to connect to the Web3 provider. Make sure the provider is running and a connection is open (via IPC or RPC). So I figured out like below. I'm running geth on my local and I gave…
rachel_hong
  • 471
  • 2
  • 6
  • 15
5
votes
2 answers

Why signed tx should be encoded to bytes before sending raw transaction?

I would like to write the Ethereum blockchain with a contract call. I already found two solutions which are almost the same, but one of them is manipulating the signed transaction, doing some byte encodings before sending it and I couldn't figure…
rihekopo
  • 3,241
  • 4
  • 34
  • 63
5
votes
0 answers

How to fix “unexpected directory layout” error when Installing go-ethereum?

All, I hope this question belongs here. I am following a Blockgeeks tutorial, trying to set up my environment for Ethereum blockchain development. I have basically gotten to the final step, installing swarm, but I am receiving an error that seems to…
dillon.harless
  • 427
  • 4
  • 16
5
votes
2 answers

AWS CloudFormation Ethereum - Explorer issue

I used the AWS Ethereum Template to deploy an Ethereum stack. The stats page works, and is showing the workers and mining stats, however, the explorer page is showing 'Allow Access to Geth and Refresh the Page' I have recreated my stacks, and went…
5
votes
1 answer

Web3j Transfer.sendFunds() returns Error "insufficient funds for gas * price + value"

When using the web3j lib for blockchain transaction in my private test blockchain I'm currently running into the titled response error: *insufficient funds for gas * price + value* The account from which I want to transfer some ether has a balance…
ArgV
  • 175
  • 3
  • 13
5
votes
1 answer

What is the function of discport=0 and [::] in an enode address?

I was wondering what is the function of "discport=0" at the end of an enode address for an ethereum node. Also, I see that my enode address is populated with my IP address some of the time but populated with [::] at other times upon checking it;…
Coalited
  • 99
  • 3
5
votes
5 answers

Setting gas for truffle

I'm running truffle migrate on main. Also using geth. I originally left gas price and gas empty in truffle.js, but now it looks like this: live: { network_id: 1, host: "127.0.0.1", port: 8545, from:…
4
votes
1 answer

type types.Transactions has no field or method GetRlp

I am trying to create a raw transaction in go-ethereum and found some tutorial code that I was tinkering with. The error is: ./transaction_raw_create.go:65:18: ts.GetRlp undefined (type types.Transactions has no field or method GetRlp) The…
pigfox
  • 1,301
  • 3
  • 28
  • 52
4
votes
1 answer

Ethereum, which syncmode to use, fast or full?

There is a geth program running, and provide --rpc service. What the service do: Sync blocks. Accept rpc requests to create transaction. There is another program try to read the new blocks, and find out the transactions relevant to addresses in our…
Eric
  • 22,183
  • 20
  • 145
  • 196
4
votes
2 answers

How to get the result and the status of a transaction

I am trying to work with the Ethereum blockchain, with the Solidity contracts. I am currently deploying a contract and performing some actions on it, but I would like to know how to get some 'feedback/callback/returns' of a specific transaction. Is…
TBouder
  • 2,539
  • 1
  • 14
  • 29
4
votes
2 answers

How to fix "the method txpool_inspect does not exist/is not available"

I'm having trouble getting the python function web3.geth.txpool.inspect() to work. I've tried using a geth server from the command line, from the ethereum/client-go container, and from the trufflesuite/ganache-cli:v6.7.0 container. In every case, I…
rotten
  • 1,580
  • 19
  • 25
4
votes
1 answer

Using Google Cloud Key Management Service to sign an Ethereum transaction

I've been working on writing a signer service for an Ethereum transaction manager and I need to sign Ethereum transactions using Google KMS Golang APIs. I'll try and summarise the problems I'm facing below. Ethereum requires compact RLP encoded…
4
votes
2 answers

Ethereum geth cannot connect to bootnode to access private ethereum network

The following docker-compose.yml is used to start an Ethereum geth node, which needs to connect to a bootnode in order to access a private Ethereum network. version: '2' geth: image: ethereum/client-go:latest volumes: -…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
4
votes
1 answer

Repeating transactions hangs - web3js, local geth

I have an issue with transactions on my local ethereum network - at some point, transaction hangs & spends a lot of ETH from my account. Here's a sample code: async function send(toAccount, weiVal) { let account = await w3.getDefAccount(); …
Dmitry T.
  • 464
  • 4
  • 12
1
2
3
28 29