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 does Etherenum get my deployed contract info?

I am practice to Truffle to build my contracts. When I finished my contract, open testrpc. And use this command line as blow to deploy my contract. truffle migrate Etherenum can get my deployed contract info if I write some code in my app.js as…
0
votes
1 answer

What is the best approach in Solidity for pagination (straightforward and based on some filter(s)) capabilities?

Let's suppose that we have following structures in Solidity contract : struct EntityA { string lessThen32ByteString1; string moreThen32ByteString1; string lessThen32ByteString2; string moreThen32ByteString3; bool flag; uint var1; uint var2; uint…
Igor Golovan
  • 91
  • 2
  • 11
0
votes
0 answers

How to deal with fail chain on Ethereum?

I am building decentralized application which grabs data from blockchain to mysql database. I'm not sure, but I guess it is possible that one part of Ethereum network accepts newly mined transaction X and another part accepts mined transaction Y.…
user3184743
  • 111
  • 2
0
votes
1 answer

Calling web3.eth.personal.unlockAccount throws error

I am on web3 1.0.0-beta.27, and I ran a private blockchain as: geth --identity "node" --nodiscover --maxpeers 0 --datadir path/to/data --networkid 123 --ws --wsport 8546 --wsorigins "*" console Then in a app.ts file I have: import * as Web3 from…
xiaolingxiao
  • 4,793
  • 5
  • 41
  • 88
0
votes
1 answer

Issue with deployment of a smart contract using ehereum wallet in private network

I am trying to deploy smart contract in the private network using Ethereum Wallet client (mist) . Although i have enough funds the application complains me that i have insufficient funds for * gas price+value. smart contract code: pragma solidity…
subha
  • 677
  • 3
  • 8
  • 14
0
votes
0 answers

How to track transactions on ethereum using node application and fire a function on complete transaction

I am trying to run a function if I got the ether on my wallet. I am using geth and nodejs. Can someone suggest me how to do that.
Yash Gupta
  • 21
  • 3
0
votes
0 answers

Error Starting Protocol Stack: Invalid arguement

I am currently trying to work with the geth and I want to start my private Ethereum Network so I can test my applications. However, when I try to use geth --datadir=./chaindata/ but that's only giving me some error in the terminal which I have shown…
Steve Sahayadarlin
  • 1,164
  • 3
  • 15
  • 32
0
votes
2 answers

Geth failing to connect to private network

I am creating a private Network (Ethereum). I wrote out the genesis.json file (code below), I then initialized it without error, but when I try to connect to it, a new line is created (implying an additional command should be specified). When I…
Ryan Cocuzzo
  • 3,109
  • 7
  • 35
  • 64
0
votes
2 answers

Identification of purchased product

I have created coins on test network.Now the confusion is, I have distributed coins to 100 members,who can use those coins to buy digital products(domains) on my platform.Now the confusion is if all domains are listed for sale for $10(100 coins),and…
0
votes
0 answers

struct array in solidity, push works but length of array remains 1

I have a struct array of a struct to which I push item, but right after pushing my array shows the length of itself as just 1, where am I going wrong here contract FinishedGoodManager{ struct FinishedGood{ string ProductionManagerId; string…
Brij Raj Singh - MSFT
  • 4,903
  • 7
  • 36
  • 55
0
votes
1 answer

Ethereum Mist connect with local private network

System information Geth Version: 1.7.3-stable Git Commit: 4bb3c89d44e372e6a9ab85a8be0c9345265c763a Operating System: linux Expected behaviour Connect Mist with local private network Actual behaviour I type command : geth --datadir…
Johan Rm
  • 151
  • 1
  • 5
  • 17
0
votes
1 answer

What is QoS in the context of Ethereum

I often see this line in my go-ethereum output. Recalculated downloader QoS values rtt=5.329575339s confidence=0.923 ttl=17.32992345s What does QoS stand for and what is its purpose in Ethereum?
mitchkman
  • 6,201
  • 8
  • 39
  • 67
0
votes
1 answer

How Mining Works on Private Ethereum Blockchain Networks?

I'm a little bit confused about how the process of mining works on private ethereum blockchains. I know that in public networks the mining processes is distributed among aleatory miners. But in private networks, should I choose the users who's gonna…
Leonardo Lobato
  • 1,047
  • 2
  • 9
  • 22
0
votes
1 answer

How does blockchain work on a mobile app?

I have been going through some lessons on blockchain and am curious as to how mobile apps utilise blockchains. From my understanding, each account will have to continously mine the network to get the latest information. However, aren't blockchains…
JianYA
  • 2,750
  • 8
  • 60
  • 136
0
votes
2 answers

Store contract results tag in a variable

I have a web3 contstant look like this. const test = contract_instance.methods.getPost(15).call().then(console.log); This returns results like this. Result { '0': '2017-08-28', '1': '19:18:04.986593', '2': '07:17:00', '3': '11112323', …
user7421798
  • 103
  • 11