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

Eth private chain sent transaction to smartcontract error "Transaction has been reverted by the EVM"

I'm newbie and now in progress for develop some smartcontract use on ethereum private chain. I have created KeepPolicy.sol for keep policy data to blockchain, and have dapp for call method in KeepPolicy.sol. The problem is I got error message in…
Ult
  • 29
  • 2
1
vote
1 answer

Adding gas to address generated at run time

I am tinkering with a piece of code that creates keys and addresses. When I run the code I get the following error. insufficient funds for gas * price + value My question is, how can I get funds into this address? Any suggestions? package…
pigfox
  • 1,301
  • 3
  • 28
  • 52
1
vote
0 answers

Ethereum private testnet failing due to peers not connecting

The problem I want to create a private Ethereum network, however my two peers refuse to connect. They always fail with the following error: Snapshot extension registration failed peer=af5dfeb7 err="peer connected on snap without compatible eth…
Alex
  • 43
  • 2
  • 7
1
vote
0 answers

Ethereum in Kubernetes: Fatal: Could not open database: resource temporarily unavailable

I'm currently trying to solve a problem in a Ethereum blockchain running in kubernetes (EKS). I do not posses knowledge on BC besides the basic but I do have access to all the configuration of this environment and I want to learn from this. The…
1
vote
1 answer

How do I make a function to get the entire list of users that are registered on my dapp from the ethereum blockchain?

Please can somebody help? How do I make a function to get the entire list of users that are registered on my dapp from the ethereum blockchain? contract SuperMail { struct Mail{ int serialNumber; string title; string content; string…
1
vote
2 answers

How to get private key based on Keystore UTC file?

I'm running ethereum private node on my system, I forgot my account password. Anyone, please help me to get a private key based on the Keystore UTC file.
1
vote
1 answer

geth private network is which type of node?

I'm new to blockchain, I have setup on private node using geth. Now I want to know, which kind of chain it is called PoA based chain or PoW? below is my command to start private node: geth --nodiscover --networkid 1111 --datadir node1 --unlock ADD…
1
vote
1 answer

How to get event logs from either eth_call or debug_traceCall in Geth?

I'm curious if anyone here could shed some light on this problem. I have been using ganache-core to dry run transactions. Unfortunately, it's way too slow for my use. Geth's eth_call is comparatively very fast, however it does not return event logs,…
ethmonster
  • 11
  • 2
1
vote
1 answer

Web3 Error: Geth Could not transact with/call contract function

I decided to run my own ethereum/bsc fullnode. I downloaded geth-linux-amd64-1.1.0 and ran it like this: geth --syncmode "full" --http --http.port 8545 --http.corsdomain "*" --http.addr "127.0.0.1" --http.api…
1
vote
1 answer

How to get ethereum contract and account information (using geth and web3.py)

I want to get ethereum data, so I use geth and web3.py. also, I currently use geth light mode. I get the transaction data through the code below... from web3 import Web3 w3 = Web3(Web3.HTTPProvider('http://127.0.0.1:8545')) block =…
Jmob
  • 49
  • 7
1
vote
1 answer

What should Go ABI.Pack argument type look like compared to solidity function?

The following code is a popular Solidity Ethereum function function: swapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) What should amountOutMin type look like in Go? Here is what I tried in Go: amountOutMin…
anonymous
  • 1,372
  • 1
  • 17
  • 22
1
vote
0 answers

Transaction exited with an error (status 0)

I am trying to make a few transactions on binance test net using a script in solidity and truffle. The contracts are just a clone of pancakeswap. My script basically adds liquidity to a pool. I was able to successfully compile and execute the script…
mzaidi
  • 109
  • 1
  • 10
1
vote
1 answer

How can I create eth account via go-ethereum?

I'm running local ethereum node on my localhost on http://127.0.0.1:7545 (using ganache). I create a new account with keystore as below snippet. But, how can my local ethereum node can be aware of that new account? Normally, I can get balances,…
jdev
  • 33
  • 3
1
vote
0 answers

Use go-ethereum libraries to subscribe to pending transactions in code

I've been reading geth's source code for the better part of a week and it's making my head spin. I'm trying to subscribe to see any interactions with a given contract in a go project with imported go-ethereum libraries. Please help me. I don't even…
Arctcc
  • 11
  • 1
1
vote
1 answer

In which cases a transaction may have 0x00 as the destination address in ethereum?

Looking at decoded transactions in Ethereum for some of the contracts I can see that the destination address is always 0x00. Are all transactions with destination(to) address 0x00 signify contract deployments? Are there any cases where the…