Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
2
votes
2answers
709 views

Transaction using geth is stuck

I have created a wallet using geth on my mac. I have sent a small amount from Kraken to that account but its stuck on "sending". Do I need to download the blockchain first on my node so it can be ...
4
votes
1answer
4k views

How can I import geth accounts into eth?

I had two accounts under ~/.ethereum/keystore when I used geth a while ago. I got a new PC, recompiled only the C++ version and I can't see my two accounts in eth. web3.admin.eth.allAccounts() ...
4
votes
2answers
416 views

How can I make an account in Ruby without using JSON-RPC?

I'd like to build an application with rails. I want to make an account through Ruby. I got the advice that, in order to make an account, I should not use JSON-RPC for security. Instead I should use ...
2
votes
1answer
206 views

Option to give passphrase via web interface

I am trying to run the sample web3.js code from here https://github.com/ethereum/web3.js/blob/master/example/event_inc.html I am running the geth node on testnet. However, when I try to create the ...
28
votes
3answers
18k views

How can I make new account by JSON-RPC?

I'd like to make new account by JSON-RPC.I've checked the wiki of Ethereum, however I could not find out how to do that. I've found call existed accounts, but it isn't what I want. eth_accounts ...
4
votes
2answers
4k views

I've been mining with geth but my balance is still 0. Why?

Today I started mining ether on the main network and I see new blocks being processed in the console but my balance is still zero ether. Why? This is the geth console output: I0214 20:15:47.234020 ...
6
votes
3answers
924 views

What is the difference between “eth.accounts” and “web3.eth.accounts”?

The instructions for creating a new account on the Geth console state: Tip: If you are using Geth then you can just use eth instead of web3.eth command. Meaning accounts can be referenced by ...
7
votes
4answers
6k views

How do I automatically run a geth startup script and get a console?

I would like to start geth using a startup script to automatically unlock the accounts and start the miner, and possibly other tasks (for my test network). I tried the --exec 'loadscript('sript.js')' ...
3
votes
1answer
2k views

Greeter variables are all undefined and contract doesn't run

I'm attempting to run the greeter contract on the live network. I'm following the commands as per the official tutorial, which worked on a test network when I tried it a while ago (on a different ...
19
votes
2answers
11k views

How do I remove accounts using the Geth console?

I have several accounts I've created in the Geth console using: personal.newAccount() I no longer use (nor have any intention of using) the first couple of accounts I created, meaning whenever I ...
2
votes
1answer
303 views

How to control which client mist is using as blockchain backend?

Whenever I run mist without any client, it launches a geth node in the background, connects to the network and syncs the blockchain. If I have a geth node running and start mist, it detects the ...
7
votes
2answers
936 views

How can I get a private geth instance on Azure to interact with the public blockchain?

So I am referring to Microsoft Azure's new blockchain as a service Ubuntu geth instance. I've set this up no problem and have run through the tutorial, but I'm trying to think of how I would get this ...
2
votes
1answer
275 views

How to import an Augur account in Geth?

I created an ethereum account on the sale.augur.net page. And now I've finally downloaded and installed Geth as well. How do I import that account into Geth?
1
vote
1answer
893 views

How to set and retrieve items to/from an array that is stored in smart contract memory/storage?

I am trying to add msg.value and msg.sender into an array using web3 for every client that invokes my contract. I would like this information to be stored on the contract for as long as possible, if ...
8
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....
6
votes
3answers
3k views

web3 methods not implemented

I'm running a geth node on the testnet and trying to run web3.js method from my node server code. Here's my code var Web3 = require("web3"); var web3 = new Web3(new Web3.providers.HttpProvider('http:...
6
votes
1answer
270 views

Is there a way to interchange between the Mist wallet and geth without having to redownload the whole blockchain?

I already have the ethereum wallet running on my laptop, when I exit it and go to run geth in terminal it redownloads the entire blockchain again? Same thing happens when I go from geth to the wallet. ...
10
votes
3answers
2k views

What's the fastest way to mine a transaction so I can test contracts quickly?

I am developing a solidity automated test framework in nodejs that uses events/logging extensively. The use of events eliminates (I believe) all the RPC simulators out there. It's also frustrating ...
5
votes
1answer
2k views

Making web3.js work from node server code

I'm running a geth node on the testnet and trying to run web3.js method from my node server code. var coinbase = web3.eth.coinbase; console.log(coinbase); However, I'm getting a provider not set or ...
7
votes
1answer
367 views

Why is homebrew downloading old geth version?

Im on mac OSX, so I go to terminal CLI and do brew install ethereum then I get ==> Downloading https://build.ethdev.com/builds/OSX%20Go%20master%20brew/193/bottle/ethereum-1.1.0.yosemite.bottle....
101
votes
4answers
90k views

What is Geth's “fast” sync, and why is it faster?

One of the answers to this question suggested using Geth's --fast flag to help quickly synchronise the block data. How does the flag work, and how does using it speed up the synchronisation? Are we ...
10
votes
2answers
6k 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. ...
5
votes
1answer
779 views

Why is fast sync not working with geth 1.1?

When I run geth --fast I get: Incorrect Usage. geth [global options] command [command options] [arguments...] VERSION: 1.1.0 [...] flag provided but not defined: -fast How do I fix this?
1
vote
0answers
83 views

Why is my node taking so long to sync? [duplicate]

I downloaded the ethereum wallet, and its taken a few days yet its still syncing. Im on block ~701,000 thus far. Is something wrong? Is it supposed to take this long?
3
votes
2answers
2k views

Why can't I create new accounts on testnet?

So I've set up a new testnet using geth --identity "NNode" --genesis /home/test/Documents/Ethereum/genesis.json --rpc --rpcport "8080" --rpccorsdomain "*" --datadir "/home/test/Documents/Ethereum/...
10
votes
4answers
893 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 ...
4
votes
3answers
427 views

Why isn't msg.sender.send getting called?

Contract code: function rand( uint256 seedB ) returns (uint256){ //define seedA variable uint256 seedA = 1; uint amount = 1 finney; if (seedA == seedB) { msg....
14
votes
4answers
7k views

How to run Ethereum Wallet on a custom chain?

So I downloaded the Ethereum Wallet I know you can use a custom directory by running geth first with the datadir flag set up, and then launching the wallet. But besides a custom directory, I want to ...
8
votes
1answer
2k views

Testnet mining is using too much CPU

I have a private testnet set up on my local machine: geth --rpc --rpcaddr "localhost" --rpcport "8545" --dev --mine --datadir="~/Library/Ethereum_dev" --rpccorsdomain="http://localhost" console 2>&...
3
votes
0answers
295 views

What is Geth and What is Eth? [duplicate]

I'm still very new to this. What is the difference from Geth and Eth I keep reading about? Why were these 2 things developed?
4
votes
2answers
1k views

Is geth being deprecated? eth seems to receive so much more development

By checking the github activity, geth seems to fall behind eth. Would love to hear about it's future and maybe something about the why's (likely to be related because it's in golang).
8
votes
3answers
6k 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 ...
3
votes
1answer
435 views

Are there Ethereum API wrappers?

I'm looking into developing some Go software on Ethereum and I'm wondering - are there any API wrappers around for Ethereum (something like BTCSuite's BTCRPCClient is for Bitcoin)? I know there is a ...
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 ...
8
votes
1answer
1k views

sendRawTransaction results in queued TXs

I attempted to send raw TXs via eth.sendRawTransaction API but get stuck. I'm using EthereumJS to generate and sign TXs, and indeed, I can submit TXs through eth.sendRawTransactin, but the TXs always ...
7
votes
2answers
1k views

web3.sha3 dealing with hex in both geth and web3.js

in both geth and web3.js, when we call > web3.sha3("0x536f6d6520415343494920737472696e6720746f20626520686173686564") we get: requirement of using web3.fromAscii before sha3 is deprecated new ...
13
votes
2answers
1k views

If someone gets my geth keystore files, can they spend my ETH without knowing my password(s)?

I always assumed so, since geth requires a new password for every account, but just want to be sure.
8
votes
2answers
4k views

Getting more Ether on a private test net

I setup a local testnet using geth following these instructions. I was able to mine my initial Ether and all was working. After deploying some contracts I quickly spent all the Ether I had. Now it ...
13
votes
2answers
2k views

What's the difference between developer mode and testnet?

I just tried running geth in developer mode on testnet. ~ $ geth --dev --testnet F0127 21:07:16.947591 6407 flags.go:467] dev and testnet are mutually exclusive I wasn't aware of the actual ...
3
votes
1answer
2k views

How to connect mist to a testnet client?

I'm running a geth instance on the consensys testnet. I started it with the following command: geth --testnet --networkid=2 --bootnodes=enode://...
22
votes
5answers
28k views

How do you stop a running geth node?

I can not figure out how to stop a running geth node without killing the process. I tried to lookup geth help but there is no mention of stopping, halting or any shutdown command. How to shutdown ...
3
votes
3answers
1k views

cannot find package “github.com/ethereum/go-ethereum/ethereum”

I was following this youtube video in order to install Ethereum client on Ubuntu 15.10 First I installed Go language environment. Then I have build QT following this wiki After that I tried to ...
9
votes
2answers
4k 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
2answers
3k 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 ...
4
votes
2answers
895 views

How do I transfer funds to another account from a lightwallet.dat file

I have a lightwallet.dat file which I exported from ujomusic.com. It's in a different format to that used by geth. I don't expect geth will import it so can I create an account with the same number as ...
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 ...
21
votes
2answers
24k views

Why is geth always returning a 0 balance?

I installed geth on a remote server (Ubuntu 14.04) and created an account. I transferred 0.01 eth to the account. From my local machine (OS X), I can view the transaction and account balance ...
56
votes
6answers
194k views

How to import a plain private key into geth or Mist?

This is such a basic question, but I can not figure out how to import a plain, unencrypted private key into geth or mist? I tried geth account import 7[......]bla but it seems this command is always ...
51
votes
5answers
79k views

How can I get a geth node to download the blockchain quickly?

I'm running a geth node on slow hardware. At the current rate of progress it could be several days before I can download all the blockchain. Is there a way to get it to synchronise more quickly?
4
votes
1answer
621 views

Can geth and eth share the same accounts and blockchain?

It appears when I have multiple ethereum clients installed, that they all have their own data, accounts and even their own copy of the blockchain. Is it possible to share accounts and the blockchain ...