Questions tagged [go-ethereum]

Go Ethereum (short: Geth) is a Golang implementation of the Ethereum protocol.

Filter by
Sorted by
Tagged with
10
votes
1answer
6k views

Difference between full node and bootstrap nodes in Ethereum?

I know that when a new geth instance runs it connects to the bootstrap nodes. What I want to know that do other nodes download blockchain from the bootstrap nodes or nor? Bootstrap nodes are highly ...
10
votes
2answers
7k views

Corruption on data-block while synchronising

My home server's been down for a couple of days while I do some upgrades. I'd had Geth running in one of the terminal windows, but shut it down gracefully using exit before taking the server offline. ...
10
votes
2answers
5k views

Manually execute transactions using testrpc and truffle

I started doing a bit of work in the geth console: geth --dev console but have moved to developing using truffle. To debug in the geth console, I'm used to executing the following: eth....
10
votes
1answer
5k views

Geth: flag provided but not defined: -genesis [duplicate]

I'm trying to start an ethereum test net on windows 7, but I'm having trouble pointing geth at the genesis block. This is the command I'm trying: geth --identity "Anon" --genesis CustomGenesis....
10
votes
1answer
542 views

Whisper V6 vs Whisper V5

Could some one please summarize the differences between V5 and V6 tell us where to find documentation - I could not find any although I understand this is in EIP 627 is it "production ready" ? say ...
10
votes
1answer
1k views

geth keeps opening & re-opening in background (OSX 10.10.5)

Issue started after installing cpp-ethereum & updating geth to 1.3.3. Geth continually re-opens in the background after being forced to shut down. When I try and run geth in terminal, I receive ...
10
votes
2answers
3k views

Is it possible to call Ethereum API from a Software Application without running an ETH node?

I was wondering if it's possible to make a call to Ethereum blockchain from a software application on my computer without having to run an ethereum node ? for example, I want to make calls from a ...
10
votes
1answer
2k views

Geth Gas price too low for acceptance

Why is geth not letting me post a transaction with a low gasPrice? > ./geth console > eth.sendTransaction({ "from": "...", "to": "...", "gas": "30000", "gasPrice": "10", "value": "0.1" }) Gas ...
10
votes
2answers
3k views

How to create private network with preallocated amount of ETH?

I am trying to create a private network for testing purposes. What I need is: Fast generating of DAG file. Fast mining of the first block. Address with some preallocated amount of Eth. I found that ...
10
votes
4answers
899 views

Unable to make greeter contract

For the past 7 days I've been trying to make the greeter contract, I've been through 4 different physical computers in 2 different locations and have tried multiple different ways on 3 different ...
10
votes
1answer
3k views

"retrieved ancestor invalid" message during synchronization

We have been running a private ethereum network for a couple of months. Today we tried to add a new node to the network. When the node was synchronizing, (after 3-4 hours) it stopped with the ...
10
votes
2answers
3k views

Raw transaction data in Go

I would like to generate raw transactions in golang without any go binding and I'm wondering if there is library to dynamically encode my argument parameter using go? https://github.com/ethereum/wiki/...
10
votes
2answers
1k views

Running a geth light client, how do I resolve the error: "No trusted canonical hash trie"?

I've been running a geth light client to deploy smart contracts through Truffle Migrations to mainnet. I'm getting: "Error: No trusted canonical hash trie". Any help in what this entails and how to ...
10
votes
0answers
2k views

geth vs parity - quantitative comparison [closed]

How do geth and parity Ethereum nodes compare in terms of: Speed How long does it take to sync with the main net, in both fast and full modes (if possible) Disk space needs What is the size of the ...
9
votes
2answers
10k views

What is a HD wallet for Ether and how to create one using nodejs?

I know the basics of blockchain and how to use geth. However, I'm curious to know how to build a wallet using nodejs. What I basically is that you can create a account using geth console (private ...
9
votes
1answer
5k views

How to unlock accounts programmatically after the node has started?

Is there any way of just unlocking accounts without opening the console with geth? I'm writing some scripts to automate cluster generation and I wish I could just call geth to unlocking some accounts ...
9
votes
3answers
7k views

Convert an eth key to a geth key

I need to convert my eth key to a geth key. eth put the key in %appdata%\roaming\Web3\keys, and I see it as a .json file. If I move that to the %appdata%\roaming\Ethereum\keystore directory, geth ...
9
votes
2answers
5k views

How to connect a web site to a geth node?

Before the DApp-browser Mist was available, this web3 library seems the way to go on building a bridge from contract to a frontend (web site). But, I cannot get the very basic examples to work. ...
9
votes
3answers
8k views

How do I send the entire ether balance from one account to another account?

I'm trying to use web3 to transfer all (or as much as I can) of the balance of an account to another account. Here is the code I have so far: var sender = web3.eth.accounts[0]; var receiver = web3....
9
votes
2answers
2k views

Float not allowed in solidity vs decimal places asked for token contract

We know that solidity doesn't support the float values. But here (https://www.ethereum.org/token#understanding-the-code) they accept one input parameter 'decimal places' for calculation purpose. How ...
9
votes
4answers
4k views

Geth RPC connections securely

I have read everywhere that exposing personal over rpc is dangerous and is vulnerable. The question is HOW? Is it possible for anyone to send transactions to my geth console, if my ipaddress and port ...
9
votes
2answers
4k views

How to resend a transaction not recognized by the network?

I've sent a simple transaction (no smart contract invocation) while my geth node had no peers attached. It created the transaction fine and returned a transaction identifier. Even with many nodes ...
9
votes
3answers
4k views

geth account creation Failed to enumerate USB devices

I'm trying to create a private Ethereum network on a Kubernetes cluster using ethereum/client-go docker image but getting bellow error while trying to create an account: ~/.ethereum # geth account ...
9
votes
1answer
3k views

What address(0) stands for?

In the contract for EOS crowdsale: https://etherscan.io/address/0xd0a6e6c54dbc68db5db3a091b171a77407ff7ccf#code line 469: assert(address(EOS) == address(0)); "assert" will test if both sides of ...
9
votes
1answer
2k views

Is it possible to call debug_traceTransaction from nodejs?

Following answer (https://ethereum.stackexchange.com/a/9437/4575) [ 1 ] guide us to call debug_trace through using geth: As documented in debug.traceTransaction(...), you can only access this API ...
9
votes
2answers
16k views

Send ether to contract address in web3.js

I want to send ether to this contract's contribute function using web3.js I'm trying below code for the same but this doesn't work for me. var AbiOfContract = 'abi_code'; var contractAddress = "...
9
votes
2answers
3k views

Best way of accepting ERC20 tokens in my service

I need to allow users to deposit and extract ERC20 tokens in my service, and I'm wondering what's the best way of implementing that. My idea is to generate an account for each user, and when a user ...
9
votes
1answer
8k views

Could somebody please explain in detail what this Ethereum contract is doing?

I am new to ethereum & blockchain technology and trying to understand somethings(Etheruem, Truffle, DApps etc.) here and there from the internet. From Ethereum official website, Create a ...
9
votes
4answers
4k views

Optimal way of waiting for transactions to be mined in geth

I'm currently checking if a transaction has been mined using the following function (using web3.js): function waitForTx(tx_hash) { var result = null; // This is not really efficient ...
9
votes
2answers
5k views

How can I connect to geth by IPC on nodejs?

This this the command line i have used to get geth running. geth ipc --ipcapi "admin,db,eth,debug,miner,net,shh,txpool,personal,web3" --ipcpath "/root/.ethereum_experiment/geth.ipc" so from node js ...
9
votes
1answer
3k views

How to send ether to a cold storage account?

Is it possible to do the following: Back up the keystore on a usb drive. Format the computer used to generate the keystore. Send ether to a public address in the keystore. Reinstall geth (or other ...
9
votes
2answers
6k views

How does Etherscan work?

From what I understand, blockchains are not optimised for searching for past transactions. Does Etherscan download the data into another database for more performant querying? If so, how can it ...
9
votes
2answers
2k views

Accessing off-chain data from a smart contract to make a decision

I just started studying about smart contracts and from what I understand, smart contracts only deal with the data present on the blockchain. While working on a private blockchain, I want to know ...
9
votes
1answer
1k views

How can I stop the block gas limit on a private chain dropping to the public chain default?

I've got a little private chain running which occasionally runs some rather labour-intensive transactions. I was able to set the initial block gas limit using the "gasLimit" parameter in genesis.json ...
9
votes
1answer
1k views

Losing connection between nodes on private network

I have 3 nodes running on a private network. After asking this question, I've manually added node1 as peer to node2 and node3, so my network looks like this: _______ ...
9
votes
2answers
55k views

How do I check my mining hashrate?

I've wrangled an old altcoin mining machine into an ethereum mining rig, it has two Radeon 280X cards in it. I'm running geth, with two instances of ethminer, one per card. However the output of ...
9
votes
1answer
3k views

How do I access member variables of a contract from web3.eth?

For example: enum Stages { AcceptingBookings, StopAcceptingBookings, Finished } Stages public stage = Stages.AcceptingBookings; function rand ( uint256 param) atStage(Stages....
9
votes
2answers
4k views

How do I connect the geth console to an INFURA endpoint?

Rather than have a local node on my PC, I'd like to be able to attach the geth cli console to INFURA and then issue requests within geth's java console, e.g. web3.eth.getBalance(<address>) I ...
9
votes
1answer
1k views

DAPPS - Scope of what to put in your smart contract

As I'm learning more and more about developing Dapps, I'm having trouble understanding what needs to be stored in the smart contract (over our database etc..). Let's take the case of a simple betting ...
9
votes
3answers
3k views

Can't verify contract on etherscan.io

guys. I have created simple contract, migrated to testnet via truffle. It can be founded here. But I can't verify it. I double check: 1. name of contract 2. version of compiler (ver. 0.4.11 in ...
9
votes
3answers
6k views

How could "ethereum block explorer" connect into geth that is already running on the main server securely?

I am working on private Ethereum Network. I run Ethereum boot-node and Ethereum Block Explorer app ( https://github.com/etherparty/explorer (A lightweight ethereum block explorer.) ) on the main ...
9
votes
2answers
1k views

geth: shh_newIdentity does not exists/is not available

I'm trying out whispers with web3 and geth on a private testnet. I'm just running the following code taken from Ethereum Whisper wiki. function sendWhisper() { var shh = web3.shh; var appName ...
9
votes
1answer
3k views

What mean "Deep froze chain segment"?

I have question My geth show me like that "Deep froze chain segment" repeatedly What mean??
9
votes
3answers
10k views

web3 js php implementation

Is there any way to communicate with ethereum through php ? what i want is to get Smart contract details from contract address like Contract token name, decimal, abi, balance, tokens supply symbols ...
9
votes
2answers
5k views

Is JSON-RPC error behavior documented?

Running geth, it's easy to see what its implementation of JSON-RPC does on errors: $ curl -X POST --data '{"jsonrpc":"2.0","method":"eth_compileSolidity","params":["contract test { function multiply(...
9
votes
1answer
1k views

How can I generate a V3 of the Ethereum wallet file format in js, from strings: 'Passphrase' and 'Email or username' required by Quorumwallet?

Quorum Wallet prompts for a Passphrase and a Email or username to generate the account. On the FAQs there is a description of the algorithm to generate the account: What is the algorithm used to ...
9
votes
1answer
3k views

supports SSL (https) JSON-RPC connections

Does ethereum node supports SSL (https) JSON-RPC connections like in Bitcoin? is there any work on control access over ethereum rpc nodes? Thank you
9
votes
1answer
2k views

RPC error "invalid or missing value for params" when calling contract constant void functions

My contract has a function defined like this: {"constant":true,"inputs":[],"name":"queryNumEscrows","outputs": [{"name":"","type":"uint256"}],"payable":false,"type":"function"} Having no inputs. Its ...
9
votes
1answer
2k views

Link solc with geth problem

After upgrading to geth 1.4.4 I am no longer able to from to reference the compiler from geth. The solc compiler is installed in /usr/local/bin but this is what I get when I check for available ...
9
votes
2answers
2k views

How to preallocate multiple accounts with ether for geth --dev chain?

I'm trying to set up a private chain with geth using --dev that has several accounts with lots of ether. It seems unclear if this is possible anymore according to this. Here's what I tried on geth 1....