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

geth never stop syncing on rinkeby testnet

when the currentBlock becomes close to the highestBlock, it stop growing, and the highestBlock begin to grow. A while later, the currentBlock begin growing again. I run geth with command geth --rinkeby --fast. the highestBlock on my geth is very…
Allen_Tsang
  • 555
  • 1
  • 6
  • 14
0
votes
1 answer

Ethereum Blockchain trying to send transaction using web3.py

I am able to use the web3.py library and I am able to deploy the contract directly using my node in Ethereum. I created my solidity code in remix and copied the ABI in the Ethereum console to deploy the code. I got the address of the contract as…
slaveCoder
  • 519
  • 2
  • 17
  • 46
0
votes
0 answers

event.watch spits out events in random order

I am watching an event: var events = EthProj.Message({}, { fromBlock: 0, toBlock: 'latest'}); events.watch((error, results) => { Inside the event I do this tempString = ((messages.split(":")[1].split(",")[0] + " (From: " +…
Cal W
  • 167
  • 1
  • 14
0
votes
1 answer

In geth it possible to host a private network not on localhost?

I was wondering if it was possible to host a private network in geth not on the localhost. Would it be possible to connect to my private chain using a non-local ip address?
Cal W
  • 167
  • 1
  • 14
0
votes
1 answer

Ethereum Simple Storage: get() func always returns zero?

https://github.com/ethereum/go-ethereum/wiki/Native-DApps:-Go-bindings-to-Ethereum-contracts https://decentralize.today/introducing-perigord-golang-tools-for-ethereum-dapp-development-60556c2d9fd SimpleStorage.sol: pragma solidity…
quanta
  • 3,960
  • 4
  • 40
  • 75
0
votes
1 answer

POA clique Ether

I have created 3 nodes using Clique Proof of Authority (2 sealers). I know i can allocate ether in the genesis.json file while initializing it. Question : Can the 3 nodes mine an ether or just the sealers?
roytags
  • 99
  • 6
0
votes
1 answer

Clique - Proof OF Authority consensus for private blockchain

Just started setting up POA Clique. Having hard time understanding some of the concept. Based on my understanding sealers is the validator of transaction (the one who create blocks) that can be set in genesis file. (My reference…
roytags
  • 99
  • 6
0
votes
1 answer

Embark build gives error "Couldn't connect to an Ethereum node are you sure it's on?"

I'm running embark on embark_demo project. embark blockchain / geth works fine & it says "account funded" but when I run embark build / embark run it cannot seem to find the ethereum node. Further it points some error at: Error: error connecting…
Vansh Badkul
  • 61
  • 1
  • 6
0
votes
1 answer

Ethereum contract do not change it state while minting

There is sol contract function mint(): function mint(address _holder, uint _value) external { require(msg.sender == ico); require(_value != 0); require(totalSupply + _value <= TOKEN_LIMIT); balances[_holder] += _value; totalSupply +=…
Vadim Filin
  • 342
  • 3
  • 12
0
votes
0 answers

Why is my Solidity sell function not working?

I have my contract and people can buy my tokens via web3 and MetaMask. Now when I try to execute sell() function throw an exception and always Etherscan says Failed. I set to sell and buy prices on my contract. Here is my sell function: /// @notice…
Francisco
  • 163
  • 1
  • 5
  • 18
0
votes
1 answer

how to install specific version of geth using ppa?

I am trying to install a specific version v1.7.3 of geth using sudo add-apt-repository ppa:ethereum/ethereum sudo apt-get update sudo apt install ethereum This installs the latest package available (geth v1.8.2). But I want another package with…
0
votes
0 answers

Ethereum Blockchain - whitelist ip for smart contracts

I'm looking to build a ethereum private blockchain, and will like to only restrict a particular user or ip address that can upload smart contracts to our chain. Is that possible?
Levin
  • 17
  • 1
0
votes
2 answers

How to write complex dapps

How does one create a more complex dapp that needs features like recurring jobs, generating random numbers, trigger e-mails, etc. (without using something like oraclize). What's the flow for an app like this? You write the app in a programming…
vladsuciu
  • 33
  • 1
  • 5
0
votes
2 answers

How to get all transactions in my address/wallet with rcp?

I installed eth go end rpc I use https://github.com/ethereum/wiki/wiki/JSON-RPC And https://github.com/btelle/ethereum-php I revised all the methods, but I did not understand how to get the list of transactions in my account or by wallet address
0
votes
2 answers

How can I connect EthereumMist with Private-Network on mac

I made Genesis block and turned on with geth like this geth --identity "PrivateNetwork" --datadir "/Users/username/dev/ethereum/data" --port "30303" --rpc --rpcaddr 0.0.0.0 --rpcport "8123" --rpccorsdomain "*" --nodiscover --networkid 1900 --nat…
J.ho
  • 15
  • 1
  • 5