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

websocket: bad handshake (HTTP status 503 Service Temporarily Unavailable) - Go-Ethereum

I have encountered a problem. I have followed this tutorial (https://goethereumbook.org/en/event-subscribe/) in goethereum, but when I replace node endpoint matic(wss://rpc-mumbai.matic.today), I encounter this problem. ERROR: websocket: bad…
2
votes
1 answer

Which EVM opcodes produce traces on GoEthereum

I was reading through the Geth docs and noticed it mentioning traces. It covered when traces occur and mentioned that logs are created anytime there are traces. The simplest type of transaction trace that Geth can generate are raw EVM opcode…
0xKitsune
  • 131
  • 6
2
votes
3 answers

How to understand uniswap v3 swap event?

https://docs.uniswap.org/protocol/reference/core/interfaces/pool/IUniswapV3PoolEvents In the uniswap v3 doc, there is some description. event Swap( address sender, address recipient, int256 amount0, int256 amount1, uint160…
youwenti
  • 133
  • 9
2
votes
0 answers

Best solution to deploy geth(go-ethereum) on kubernetes(aws eks)

I am trying to deploy geth on kubernetes.I need to have all of my pods(2 currently) to have a common volume(persistent volume) mounted to the "/data/geth/chaindata" folder.i.e each pod reads and writes chaindata from a common volume. The…
2
votes
1 answer

"transaction type not supported" When trying to deploy a simple contract using Go-Ethereum, Solidity, Go. Doesn't happen in Remix

When ever I try to deploy my smart contract to test, I receive an error indicating "transaction type not supported". Below is the source code. I'm trying to deploy my simple smart contract using abigen's Go bindings. Versions: go1.16.7 Solidity…
Kevin Jiang
  • 271
  • 3
  • 10
2
votes
1 answer

Go-Web3 Transaction failing due to Insufficient funds for gas* price + value

my transaction is failing for some reason due to {"code":-32000,"message":"insufficient funds for gas * price + value"} I am executing a pancakeswap transaction to swap a token for bnb. I have the gas set to 5 gwei and I have web3 getting the gas…
0xKitsune
  • 131
  • 6
2
votes
1 answer

How can I add function and array to already deployed contract on the main net

How can I add function and array to already deployed contract on the main net. User[] public registeredArray; function getAllUsers()public view returns(User[] memory){ return registeredArray; } How do I add this array to the struct of the…
2
votes
1 answer

Can we get Smart Contract address by Token Name

I want to get smart contract information by token name as Etherscan does but with my private network. According to web3 doc, If I need to get any information related to Smart Contract, I first need to have a smart contract address and ABI. But when…
2
votes
0 answers

Ethereum listen for all transactions

I'm trying to listen for all the transactions an address does. I'm using my own geth light node and subscribed to pendingTransactions events. My doubt is if I could miss a transaction this way and if it would be better to listen for newHeads and…
2
votes
1 answer

Unable to list accounts using geth console even though accounts exist

When I run the geth command to list all accounts, it works fine: geth account list INFO [04-09|15:47:35.967] Maximum peer count ETH=50 LES=0 total=50 INFO [04-09|15:47:35.967] Smartcard socket not found, disabling err="stat…
Aviral Srivastava
  • 4,058
  • 8
  • 29
  • 81
2
votes
0 answers

Can't connect to mainnet using web3.py and IPC provider

from web3 import Web3 web3 = Web3(Web3.IPCProvider()) print(web3.isConnected()) web3.eth.get_balance('some_adress') isConnected returns True but does not get my balance correctly(always returns 0). I'm using geth and also used the get attach…
2
votes
1 answer

how does ethereum web3js imports "crypto-js"?

I am a bit confused by the syntax used in the web3.js file of the ethereum repository, although there is no file named crypto-js nor any npm or yarn, how is this import is being done?…
geekymano
  • 1,420
  • 5
  • 22
  • 53
2
votes
2 answers

How can I solve this error? "command not found: puppeth"

[eunsungahn@eunsungui-MacBookPro Blockchain % geth version Geth Version: 1.10.1-stable Git Commit: c2d2f4ed8f232bb11663a1b01a2e578aa22f24bd Git Commit Date: 20210308 Architecture: amd64 Go Version: go1.16 Operating System:…
2
votes
1 answer

what is the difference between a node and a client in the ethereum context?

I'am new to ethereum, I canno't find the difference between a client and a node. I concider the client to be an mplementation of the node in a programming language such as go or js?
Salah-SH
  • 21
  • 3
2
votes
1 answer

Can anyone share the current eth.syncing status of a sync-ed EVM node?

For those who have a sync-ed EVM node, can help share the current eth.syncing status? I'm still syncing my node. Below is my status. > eth.syncing { currentBlock: 11365522, highestBlock: 11365595, knownStates: 526253551, pulledStates:…
Capital C
  • 319
  • 3
  • 13