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

How to access ethereum/client-go shell outside docker container

I have just started learning Blockchain and following a YouTube tutorial . In that tutorial he installed ethereum by cloning the repo , but I have installed the ethereum/go-client using docker as per the instructions given in official documentation…
0
votes
1 answer

Failed Transaction on Ethereum

I've played around for some bit with a selfmade program. I just tried to sell some random token on uniswap which I bought earlier. My transaction somehow didn't go through and I don't know…
betrayal
  • 1
  • 1
0
votes
2 answers

How to run the graph-node in the rinkeby test rpc

I am trying to write a subgraph for the contract which is deployed in the rinkeby test network. for that I need to run the graph-node in the same rinkeby test network. With the reference of the below…
Suganth G
  • 5,136
  • 3
  • 25
  • 44
0
votes
1 answer

How can I enable CORS for a quorum node from the geth console?

I have a remote quorum node that I am trying to connect my metamask wallet to but it needs to have CORS enabled but I created my network with quorum-wizard and I can only connect to a node using attach.sh that was generated when I created it. When I…
Andy Christie
  • 71
  • 1
  • 4
0
votes
1 answer

Running geth with "--allow-insecure-unlock"

I am trying to send transactions via web3.py interface that is connected to a local geth node. Having read some comments on why using RPC is bad, I am still wondering if using -rpc option is unsafe when port 8545 is closed. According to this article…
WhiteHat
  • 110
  • 5
0
votes
1 answer

Fork the actual mainnet from a specific block

I would like to test some imbrications between many smartcontract on Ethereum, but : many of them are not available on testnets/are on different testnets. there is a significant history/status change for some of them and it would be difficult to…
TBouder
  • 2,539
  • 1
  • 14
  • 29
0
votes
1 answer

GoError: Error: could not decrypt key with given password at web3.js:6347:37(47)

Purpose: I would like to unlock the Coinbase account so it can be used to transfer ethers to Metamask. I input the following command on Windows' Command Prompt: geth --datadir ~/eth-dev/ --networkid 326584 --verbosity 4 --ipcdisable --port 30301…
0
votes
2 answers

What is the difference between infura and geth?

I understand both methods are used for running dapps. What I don't understand is the clear cut difference between the two or how one is more advantageous over the other? I'm new to blockchain, so please explain with a simple terminology.
Vasvi Sood
  • 29
  • 1
  • 5
0
votes
2 answers

Logs of a pending ethereum transaction disappeared after confirmation

When I used "eth_getLogs" to query logs of a pending transaction, the log info showed up as below, but after the tx was confirmed, the logs are not available on etherescan. This tx used the delegate call. Could anyone advise on why the logs…
0xdev
  • 51
  • 1
  • 3
0
votes
1 answer

Ethereum replacement transaction not accepted by nodes

When my program sends a replacement transaction with same nonce and a 15% more gas price, the transaction is not accepted by nodes and the previous transaction gets confirmed instead. The time between replacement and confirmation is sometimes more…
0xdev
  • 51
  • 1
  • 3
0
votes
3 answers

How to subscribe to the event "incoming transaction successful"?

How can I subscribe to the event "incoming transaction successful". That is, I want to know that ether has come to my wallet. How to do it using subscription. I do not understand anything. package main import ( "context" …
Delgus
  • 1
  • 1
0
votes
1 answer

I want to change array of struct from fixed to dynamic where as when I remove argument from array compiler throws error

pragma solidity ^0.4.17; contract Signature{ struct signature { string value; uint rate; address sender_acc; } signature[5] public unverified_sig; // struct array is fixed but I want dynamic, if i del 5 then it …
0
votes
1 answer

Unable to run the smartContract using Truffle Console. Getting error

I am trying to run the following smart contract: pragma solidity ^0.5.0; contract Calculator{ function addition(uint a, uint b) public pure returns(uint) { return (a + b); } function substraction(uint a,…
0
votes
1 answer

AttributeError: module 'web3.geth' has no attribute 'txpool'

When I call provider = Web3.HTTPProvider('some url') w3 = Web3(provider) web3.geth.txpool.inspect() I get an error AttributeError: module 'web3.geth' has no attribute 'txpool' My geth config --http --http.api eth,net,web3,txpool Why I can't…
CooleRnax
  • 1
  • 3
0
votes
3 answers

I keep getting a permission denied error when running a command with sudo

I am following this tutorial that uses go ethereum tut but when I run the following command I get a permission denied error sudo bootnode --nodekey=new-node-1/nodekey --writeaddress > new-node-1/enode this is the error -bash: new-node-1/enode:…
John Bradshaw
  • 179
  • 1
  • 16