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

How to get the current hashRate in geth?

I started geth on mainnet I did miner.start() it logs when generating the DAG , getting block headers ...etc but when i do eth.hashrate it logs 0 also when i do miner.getHashRate() or miner.HashRate it throws an error saying that the function is…
-1
votes
1 answer

How can I update the price of Matic on realtime inside a smart contract

I'm working on a smart contract that allows users to pay for monthly subscriptions like Netflix, Amazon, etc... Assuming that each subscription costs 20$ per month which is equivalent to 22 Matic at the time of writing this post. During the time of…
David Jay
  • 345
  • 1
  • 2
  • 15
-1
votes
1 answer

Checking the number of confirmed blocks for a transaction?

How does one check the number of "block confirmations" for a given transaction? I tried checking the transaction hash in block heights of +1, +2, etc. but they don't contain the transaction ID. Would I instead need to wait for future blocks to be…
danthegoodman
  • 501
  • 4
  • 10
-1
votes
1 answer

Chainlink submit_tx Error: cannot send transaction on chain ID

Followed the Fulfilling Requests documentation on Chainlink, and got the following error. Image: Chainlink Operator Overview Chainlink CLI - [DEBUG]: 2022-03-19T03:17:42.410Z [DEBUG] Error in transaction, rolling back: cannot send transaction on…
-1
votes
1 answer

Geth node not finding peers with Zedboard

I've been trying to setup an Ethereum node using geth inside a Zedboard which has Arch Linux ARM installed inside it. I am using the latest version of the binaries for the ARM7 version available in the official page (1.10.15). This is intended to be…
-1
votes
1 answer

"net/http: nil Context "coming from a smart contract funtion of an Golang API

I had a backend golang project built and ran already in AWS, and I added geth to achieve part of the blockchain functionality. So far, I had a smart contract written with its go file auto-generated by geth called orderContract.go. Now, I need to run…
-1
votes
1 answer

Command that works in terminal doesn't work with go exec.Command

I'm trying to attach to a go-ethereum node from a go script: accountInfo:= fmt.Sprintf("attach %v --exec 'eth.getBalance(eth.accounts[0])'", connect) //x, err := exec.Command("geth", accountInfo).Output() // returns 'Fatal: Unable to attach to…
getb21000
  • 11
  • 2
-1
votes
1 answer

ethereum No geth.ipc in the folder

ethereum No geth.ipc in the folder Terminal display PS C:\Users\88693\Desktop\rian\dada1> ls 目錄: C:\Users\88693\Desktop\rian\dada1 Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- …
好味道
  • 1
  • 1
-1
votes
1 answer

different signing results from go-ethereum and ethereumjs.utils

I get different results from signing the same string with the same private key in go-ethereum and ethereumjs.utils. The key used in ts has the "0x" in front because that function requires hexed keys to have that indicator. the crytpo library is from…
ForbezE
  • 31
  • 3
-1
votes
1 answer

Statistics on Success / Fail Ratio of Ethereum Transactions

Is there any statistics on number of successful transactions comparing to number of sent transactions to the Ethereum main network? In my own experience of sending bunch of transacitons (by Go), I could see that something like 20% of transactions…
Aslan
  • 91
  • 5
-1
votes
1 answer

can't run geth command on windows10

I install GETH on Windows10 but when I execute the command geth version it will get an error "geth' is not recognized as an internal or external command, operable program or batch file."
Michael
  • 51
  • 1
  • 10
-1
votes
1 answer

install go-ethereum dependencies and tendermint dependencies with glide

I'm using "glide" to manage my go packages, here is my glide.yaml: package: github.com/my-project import: - package: github.com/ethereum/go-ethereum version: 1.8.14 subpackages: - cmd/utils - common - common/hexutil - consensus/ethash …
SinTan1071
  • 53
  • 9
-1
votes
1 answer

Huge persisting memory allocation with go-ethereum `bind.NewTransactor()`?

I am developing a REST service that interacts with a private Ethereum blockhain network. First, I used Java with the Web3j library and Jersey. Everything worked as expected but a single instance of the service (not the geth client) was taking up to…
Q. Betti
  • 99
  • 9
-1
votes
1 answer

How to resolve Uncaught Error: Invalid number of arguments to Solidity function

I am trying to call a solidity function and am getting an error. This is how I create my contract: var EthProjContract = web3.eth.contract(my abi); var EthProj = EthProjContract.at('0xcce478FDeF9F1DF933e31B1eeA48561e0095628A'); I am calling my…
Cal W
  • 167
  • 1
  • 14
-1
votes
1 answer

Balance does not increase by mining in private net

I can not mining from geth(v1.8.3) by using private_net. But I can not increase my account balance. I want to increase my account balance. Is there anyone to solve it? My execution commands are below. after executing this command, I confirmed mining…
1 2 3
28
29