Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
1k views

How to run my own full node pool? (error: unexpected identifier)

When I run this geth with the following parameters: geth --rpc --rpcaddr "my ip" --rpcport 8545 I get an error like: (anonymous): Line 1:13 Unexpected identifier (and 1 more errors) Please help.
6
votes
1answer
840 views

Unable to send raw transaction

i'm working on to the morden testnet and using a nodejs application i wrote (using ethereumjs-util, ethereumjs-tx) i'm trying to push a raw tx on to the testnet. I've tested GETH "eth....
4
votes
2answers
3k views

How do I print my account balances and TheDAO tokens from geth

Is there a convenient script to print out my account balances and TheDAO tokens from the go-ethereum client geth?
8
votes
1answer
2k views

How do I tell whether the Mist/Wallet is “fast” or “full” syncing?

I'm currently installing Mist/Ethereum Wallet from the pre-built binaries. Having the run the ./Ethereum-wallet executable, it's now part-way through syncing the blockchain. It seems to be taking ...
4
votes
2answers
707 views

Geth very slow mining in dev mode on windows

I'm having a very strange issue where mining using Geth on windows is very slow using in -dev mode. I have never had that issue before as i usually use OSX but the DAG load normally then 1 block is ...
39
votes
3answers
33k views

How to call a contract method using the eth_call JSON-RPC API

Ok, so I'm trying to call a contract method using the methods provided by the Ethereum JSON RPC interface. The JSON RPC is running on an Ubuntu machine. Unfortunately, I can't really get a result back ...
0
votes
0answers
60 views

How and from where i can learn about Ethereum Mining algorithm(including PoW)? [duplicate]

How a transaction is mined to a block?
5
votes
2answers
607 views

after --fast sync in geth is there a way to rebuild the old states?

getBalance() is not working after fast sync as it queries too far into history, is there a way to rebuild all the states without redownload of all the blocks?
1
vote
1answer
85 views

as IBM openblockchain said data are encrypted in that, Is data in Ethereum are encrypted?

Data refers to transactions,contract code functions,arguments passed to smart contract functions.
3
votes
1answer
279 views

for Mac - Importing priv key / wallet of receiving DGD address into Mist

I've followed the instructions below but am getting an error message in terminal geth command not found Open TextEdit Paste key into TextEdit without any extra characters or quotations Save the file ...
13
votes
3answers
18k views

How can I get my accounts into metamask or vice versa?

I need my accounts in Metamask to match my local machine so I can deploy from the machine (using truffle), and test in a browser. How can I either: Upload my local geth accounts to Metamask Bring ...
6
votes
2answers
813 views

Should correct transaction nonce be one less than account transaction count?

I am trying to solve the 'Why am i getting “removed tx from pool: low tx nonce or out of funds”?' problem on my private test net. I seem to have enough funds however the rejected transaction nonce ...
4
votes
1answer
4k views

Why is the geth ipc file not being created, even though it says “endpoint opened”?

I had some test code working fine over IPC using out-of-the-box geth. I tried to set up a test network and it broke the IPC client. I want to run two processes -- a miner geth process, which stands ...
6
votes
5answers
8k views

How do I change/move the .ethash (DAG) directory to a different location?

When mining, the ~/.ethash folder is quickly fielded. This is annoying as my home directory is on a SSD with no large empty space. Furthermore, mining is writing/reading a lot on the SSD, which is not ...
3
votes
1answer
866 views

Set up Mist browser for a private go-ethereum docker cluster

Consider a base set up consisting of 'n' docker containers (within a VM running on OSX), each running a geth instance. Thanks to the guidance from @BokkyPooBah, in a different thread, I have been able ...
7
votes
1answer
123 views

Any Detailed Documentation On The New Geth v1.4.0 JSON-RPC Protocol Revisions Yet?

I read that geth v1.4.0 had a complete overhaul related to the JSON-RPC protocol. Now that v1.4.0 is nearly a stable release, I am curious to find out if any of these latest revisions have been ...
13
votes
1answer
16k views

How to enable and mine Testnet (Morden)?

I have installed Ethereum Wallet on Ubuntu 14.04. After the installation was completed, I realized that my Testnet (Morden) mode was disabled. Looking in the Develop -> Network menu, the Main network ...
4
votes
1answer
514 views

How do you provide a GasPrice and GasLimit to overcome the “low tx nonce or out of funds” log message

I am getting the following logged by my private chain geth node when running a test in truffle: removed tx ( TX(ff8ec4f713e64fb25df07d153607e29629c9276b57e0b7e331f17b5a3c31fdd1) Contract: ...
14
votes
3answers
19k views

How to attach geth to a local Parity RPC port 8545?

I'm running parity with the --jsonrpc flag which listens on port 8545 by default. I'm trying to attach a geth instance, like described in the the docs: Attach a console to a running geth instance. ...
5
votes
1answer
581 views

why is my connected peers so few and blocks syncronising so slow even it stops

it took so much time to do the syncronising but still not completed, I want know if the syncronising is always this slow, or is there some way to make it quicker?
11
votes
3answers
1k views

is there an easy way to get the full state of a contract?

I'm developing a quite complex contract with many state variables of all kinds. (mappings, arrays, uint, strings, bytes, etc). For testing, it would be very useful to get a JSON (or similar) with the ...
6
votes
1answer
8k views

Solo mining on geth: Libcurl error 7

Trying to setup solo mining using Geth, but every time I try to start mining I get: X Failed to submit hashrate. X Dynamic exception type: class jsonprc::JsonRpcException std::exception::what: ...
5
votes
2answers
288 views

Importing presale wallet into Geth without downloading all the blockchain

Importing presale wallet into Geth without downloading all the blockchain I was wondering if it is possible to import a presale wallet into Geth without downloading the whole blockchain. I mean, is ...
5
votes
1answer
966 views

web3 API not returning instance of contract when used with eth-lightwallet and hookedweb3provider

I have managed to get a hooked web3 provider with eth-lightwallet creating a contract on a private geth node. I see the tx on the geth logs and see it get added to a block when mined. However I am ...
5
votes
2answers
2k views

How to communicate with the JSON RPC server programmatically using Go?

Is there a way to interact with the JSON RPC server directly in Go? I tried the following: Starting the RPC Server with "geth --rpc" Running the following code: package main import ( "fmt" ...
5
votes
2answers
1k views

Regarding Adding Peers on two local machine nodes

I am new to Ethereum and tried everything to connect testnet from two local machine nodes. I have a geth node running on a small server. I want to connect to it via geth attach from my local computer....
5
votes
1answer
397 views

Error in download full data with Geth ( transaction field in Block is empty)

I'm trying to download full data of ethereum block chain. But when I check the result, I found an error. From block 1 to 46146, field tx is empty,it means that there is no data for transaction. Does ...
3
votes
1answer
719 views

How do you configure eth-lightwallet txutils example_usage.js to use a local eth node?

The example code for eth-lightwallet that shows how to use it with the hooked web3 provider can be configured to use the local node as follows: var ethClient = "http://localhost:1111"; var web3 = new ...
5
votes
1answer
644 views

How to send bytes in combination with array to contract

I see strange behavior when I try to execute some test contracts. I have made 2 test contracts, contract TestContract1 { uint public n; uint public testValue1; bytes6 public ...
3
votes
1answer
7k views

geth, what happened to --logfile?

I just compiled 1.4rc and got this error. I failed at seeing how to use --logfile now, it seems it's been removed but I'm not able to find an alternative. ➜ go-ethereum git:(release/1.4) build/bin/...
13
votes
2answers
5k views

Running a custom private go-ethereum node cluster using docker

Here is a set up I have been working on and am having issues with ability to create a private network with peers. Basic set up: Used the dockerfile from https://github.com/ethereum/ethereum-dockers/...
5
votes
2answers
722 views

Blockchain sync on geth stalls at block 1.1 million

I saw the responses on a few issues regarding ethereum and blockchain sync on this site, and was wondering if anyone could help me with a problem I'm facing. I've been trying to sync the blockchain ...
20
votes
3answers
18k views

How can I expose Geth's RPC server to external connections?

I want to set up a private network of applications which can connect to a single Geth node. What options do I have for exposing the RPC server? I'm running this: geth --rpc --testnet (sometimes I use ...
6
votes
3answers
2k views

Personal API documentation for JSON RPC

Is there documentation and examples for using the personal api via JSON-RPC? I found this. However it does not say what the method would be in JSON-RPC.
2
votes
2answers
251 views

What is the XETH Wallet / Bitprofile?

What is the XETH Wallet? I see it's some kind of wallet dapp on top of a geth instance. But what is the Bitprofile and what makes it different to other wallets like Mist?
24
votes
6answers
7k views

How to make miner to mine only when there are Pending Transactions?

As of now the geth miner running on my system mines even empty blocks. All i wanted is miner should mine only when there are Transactions to mine, after mining the miner should immediately sleep. ...
3
votes
0answers
40 views

Geth: how to unlock an account via json rpc [duplicate]

I am running geth and have my api calls all setup but some are useless as I can't sendtransaction without first unlocking the related account. The unlock needs to be over the wire as the caller is ...
6
votes
1answer
2k views

How do I manage unlocking accounts in a test in Truffle

I have a test that exercises a contract function across different accounts. How do I unlock these accounts in the context of the test? contract('MyContract', function (accounts) { it("should ...
5
votes
2answers
1k views

How can I force geth to create accounts in a different keystore?

In geth using Mist I noticed that I have 2 keystores in two different places. One for the main blockchain in Users/<user>/Library/Ethereum/keystore/ (OS X) and on testnet in Users/<user>/...
7
votes
2answers
3k views

Does the number of geth's maxpeers option include it's own node?

In geth's parameters there is a --maxpeers option. Does this option number includes it's own node? --maxpeers "25" Maximum number of network peers (network disabled if set to 0) Does --maxpeers "1"...
6
votes
1answer
487 views

Oraclize API not returning anything in Morden testnet

I use Geth 1.3.6 and a Morden testnet. I am trying to test the Oraclize API for my Ethereum smart contracts. First, I have compiled and deployed the simple smart contracts as DieselPricePeg.sol and ...
7
votes
3answers
25k views

Sent ether from wallet to bittrex, 12 hours later no balance on bittrex [closed]

So I made an account on bittrex and I created a hex address so I could transfer over my ether, I went into my wallet and sent 0.1 ether to bittrex, 12 hours later my bittrex account still shows a 0 ...
8
votes
2answers
2k views

How do I know if a submitted block became an uncle?

We need to detect that the submitted work became an uncle. How would I do this with geth api? I thought of checking the submitted block number later for any uncles that match my block's hash. Is there ...
5
votes
2answers
2k views

Should I avoid CLI geth and Ethereum-Wallet both using the same data dir

I've been running Ethereum-Wallet as my wallet on OSX for a while, and it's fine. It's using /Users/myname/Library/Ethereum as it's data dir. I've just installed geth via homebrew with a view to ...
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 ...
22
votes
1answer
29k views

Geth node starts to sync from the beginning after fast sync

I have synced using the --fast command. Now how should I proceed? I tried stopping it, and then running geth --rpc but it says: Last Header #1311471 Last Block #0 Fast Block #1310224 What should I ...
6
votes
1answer
369 views

Getting segmentation fault while compiling solidity contract

Getting segmentation fault when compiling a simple contract on geth on OSX Yosemite web3.eth.getCompilers(); ["Solidity"] source = "contract test { function multiply(uint a) returns(uint d) { return ...
2
votes
0answers
187 views

Do you need the fully synced node before sending a transaction to the network? [duplicate]

I'm trying to create a wallet locally. I can create an externally owned account using geth that is connected to a local test chain. Now I would like to "push" that account to the real blockchain. Does ...
8
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 ...
18
votes
2answers
6k views

Deploying the Greeter contract via the geth CLI is not registering in my private blockchain

I am running a local private Ethereum blockchain using: geth --networkid 60098 --genesis CustomGenesis.json --nodiscover --maxpeers 0 --rpc --rpccorsdomain "http://localhost:3000" --datadir "./data" ...