Questions tagged [go-ethereum]

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

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

How can I connect my HTML user interface to my Ethereum private chain?

I'm trying to learn smart contract development and test my contracts. Before, I used truffle, Metamask and testrpc to test my contracts; and it took care of how to interact my HTML page to the local ...
21
votes
2answers
25k 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 ...
8
votes
2answers
4k views

Sync blockchain while mining?

I'm new to ether mining. Do I have to sync with the blockchain while mining? Currently I'm using ethminer for solo mining with GPU and geth to sync with blockchain.
8
votes
2answers
4k views

Geth --genesis is giving Invalid Usage

I am following this link to make private Ethereum Chain.But running geth --identity "Prashant" --genesis CustomGenesis.json --rpc --rpcport "8000" --rpccorsdomain "*" --datadir "chaindata" --port "...
7
votes
1answer
5k views

geth sendTransaction error: insufficient funds for gas * price + value

I tried geth in a private network, and when I tried sendTransaction, it was failed saying "Error: insufficient funds for gas * price + value". But the balance of accounts[0] is 4785 ether and it ...
5
votes
1answer
690 views

Is it safe to kill geth with SIGTERM?

Unlike SIGINT it gives no output to console except "terminated". I tried it with testnet and it seemed ok. But is it safe to do so?
3
votes
1answer
3k views

How can I create a list of peers from my syncing geth node to manually paste into my non-syncing geth node using the admin.addPeer() command?

I have an Ethereum node that is not syncing to the Ethereum network. It is possible that there are some issues with the bootnodes - refer to geth does not sync out of the box . How can I easily ...
3
votes
1answer
2k views

Dangling hash node ref: too many open files

I'm running two supernodes with the geth client. At peak times they have 500-800 connections and handle around 16GB traffic per hour. This is how I run the node: geth --networkid "1" --identity "...
1
vote
1answer
2k views

Mistake when using web3.eth.filter() and filter.get()

I went to the website https://etherscan.io/txs?block=4067373 and with that information choose the following address (third in line) to test on: 0x25f000254108a104A7127B5a5697cb3C12643e62 And the ...
5
votes
0answers
217 views

Can I `eth_call` a non constant function from javascript?

I know that I can't get the return value from a transaction (How to get values returned by non constant transaction functions?), and non-constant functions have return value because they can be called ...
5
votes
1answer
3k views

geth does not sync out of the box

I have a fresh new installation of Ubuntu 16.04 and I've followed manual to setup geth sudo apt-get install software-properties-common sudo add-apt-repository -y ppa:ethereum/ethereum sudo add-apt-...
4
votes
1answer
625 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 ...
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 ...
3
votes
2answers
733 views

Where can I go if I still have problems with syncing the blockchain?

I've searched online, this Stack Exchange, including synchronization, and am still having problems with syncing Geth. Where else can I look and try to get help?
2
votes
1answer
1k views

Web3.py EventFilter.get_new_entries() always empty

I've following code to obtain new event entries. The idea is to get latest Transfer events from a specific contract. from web3 import Web3, HTTPProvider import json abi = json.load(open('abi.json')) ...
1
vote
1answer
378 views

On which node smart contract get executed

I have a general question in my mind please do correct me if i am thinking wrong . Suppose if i deploy the smart contract on the ethereum blockchain having a functionality to pay some tokens at ...
1
vote
2answers
2k views

Is it possible to run multiple Ganache nodes for private test network?

I wonder if i can create my own private cluster as it can be done with Geth for development & test purposes : https://github.com/ethereum/go-ethereum/wiki/Setting-up-private-network-or-local-...
12
votes
1answer
2k views

Looking for a working Whisper example

I was looking to develop an application using Whisper & NodeJS and I'm having trouble finding an example that works and is updated. I've encountered this doc web3js.readthedocs.io/en/1.0/web3-shh....
16
votes
2answers
23k views

When is the geth.ipc file produced?

I'd like to access geth.ipc file in order to connect geth via IPC. I've got an advice and it suggested me to access geth.ipc, but I've not found it on my mac. Could you tell me when that file is ...
29
votes
9answers
51k views

How to get private key from account address and password?

What I have 1. I am able to create new account with personal.newAccount() method of web3 api. 2. I am working on my private blockchain. 3. geth node start with following command:- geth --datadir ~/...
10
votes
2answers
7k views

How to run a “server” for light clients?

When running geth --light the go-ethereum client somehow has to connect to full nodes to interact with. Could geth connect to any full node on the network or does this require a special endpoint? How ...
20
votes
7answers
15k views

geth import vs copying chaindata

I'm trying to sync my RPi 2 with the blockchain. geth import runs quite slowly, as well as syncing from scratch. What would be the problem in just copying the .ethereum/chaindata folder from ...
3
votes
2answers
5k views

How do I transfer ERC20 tokens (GNT,OMG, etc) from a cold wallet to another account (or exchange) using geth

I want to transfer ERC20 (standard) tokens from a basic ethereum account to an exchange or to another account. How do I do that without using a GUI like Mist?
17
votes
3answers
8k views

Why doesn't my Ethereum node have any peers?

I'm running an Ethereum node using geth and it can't find any peers. I've already tried the time sync command suggested on the wiki. My bandwidth is good.
8
votes
4answers
3k views

web3.eth.getStorageAt for mapping

How can I get contract mapping storage? Considering this simple contract contract Currency{ mapping(address=>uint) public balances; function deposit(){ balances[tx.origin]++; } } ...
8
votes
1answer
13k views

Error: Invalid JSON RPC response: undefined from node web3.js app

I'm getting Error: Invalid JSON RPC response: undefined from my node.js application when it tries to execute a function. My steps: ethereum wallet 0.5.1 to deploy a contract to the testnet. start the ...
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 ...
5
votes
1answer
3k views

Interaction with a deployed smart contract from the geth command line

I have a contract which I'd like to be able to sum numbers submitted by any other address: contract UnitCounter { mapping (address => uint256) public UnitsFrom; uint256 public TotalUnits; ...
3
votes
2answers
3k views

Where are the variables of a smart contract stored?

we all know that we can write smart contract with solidity in ethereum such as: mapping(bytes32 => bytes32) private userPasswds ; event RecordReturnResult(bool res); /// @dev new the ...
18
votes
1answer
15k views

Getting private keys of geth accounts

Just the opposite of this question How to import a plain private key into geth or Mist? I would like to know how can I obtain the private keys of the accounts created with geth in this way: $ geth --...
13
votes
6answers
6k views

Sorting an Array of integer with Ethereum

I'm trying to have a simple array of integer sorted in Solidity but i couldn't find any real ressources so instead i'm trying to do it "the hard way" but so far with very little success. Is anyone ...
11
votes
5answers
19k views

why did it returned null after call miner.start()

> miner.start() > null before it , I had created a account like this . user1 = eth.accounts[0] "0xb62f0bae52d153365661c4e23ab1d594484e9bef"
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. ...
7
votes
2answers
891 views

Is there any limitation for the number of the return values from Solidity functions?

Answer of this question (https://ethereum.stackexchange.com/a/3590/4575) says that: "I am not allowed to return dynamic arrays from Solidity functions yet." On the other hand, Solidity supports ...
6
votes
2answers
2k views

How to access Geth's state trie

Using Geth, how can I extract a snapshot of the network state for a given block? My Geth node runs a full sync (~300 gb) which means the state trie should already be saved down. I've tried accessing ...
5
votes
1answer
919 views

geth: can not resend transaction - transaction not found

I'm trying to resend a transaction unrecognized by network with increased gas price: tx = eth.pendingTransactions[0] eth.resend(tx, web3.toWei(0.5, "szabo")) What I'm getting is: Transaction ...
5
votes
3answers
1k views

Preallocate ether using genesis

I'm using geth to setup a private chain using the online tutorials, which apparently need some work. I'm starting up using the following command: geth --identity "bingo" --rpc --rpcport "8000" --...
4
votes
2answers
2k views

How can I view The DAO proposals including the current voting status?

The EtherScan.io website provides a page for The DAO proposals. This page does not provide the current voting status. How can I view The DAO proposals including the current voting status?
3
votes
2answers
2k views

Disable automatic pregeneration of DAG?

I am working on a private blockchain (currently block #16117). I have pregenerated the DAG for epoch 1 as well. So, I started the geth instance with --autodag=false. However, I still get the following ...
1
vote
1answer
2k views

Set watch for ethereum address transaction using web3js

I want to set watch for my public address. So i can get all transaction for that address. My code is: var filter = web3.eth.filter({ address: ["0x2A7146700BCe4A574eE36D5e9cd6CF7d8871aEB6"] }); ...
15
votes
4answers
12k views

getting error on max invalid genesis file: hex string has odd length

I am trying to create a genesis block on my mac for a local ethereum network but I am getting the error: invalid genesis file: hex string has odd length when i do it. My code is the following: { ...
14
votes
3answers
10k views

Export Parity private key

Good afternoon all. Been searching around for an answer to this question and can't seem to find the exact solution I need. I have an ETH account on my Parity node that I want to move to Ethereum ...
10
votes
5answers
15k views

How to check currently installed web3 version?

How to check installed web3 version with command line terminal?
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 ...
7
votes
1answer
2k views

Can anyone help guide on running two geth clients on the same box and same network?

I am working on Mac OSX. I have the CL tools installed and I can start one geth client on a private network. Mining works. Wallet features work. I am able to successfully mine eth and deposit it into ...
7
votes
3answers
8k 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 ...
6
votes
1answer
4k views

geth not connecting to private network

I am running a private blockchain and I have parity nodes that seem to be connecting just fine. I've gotten though some geth issues that I was having before but geth still won't connect. HOWEVER ...
5
votes
1answer
2k views

How can I split my Contract up into different smaller ones?

I am learning the Solidity language and I have been experimenting on the Ropsten Testnet, I have tried several things with a contract I created, yet everytime I try to create it, remix solidity IDE ...
5
votes
2answers
1k views

geth ignoring --ipcpath in Linux with attach and datadir

I am trying to create a test network and have been able to start a network (I think). geth --datadir ./eth-data --ipcpath geth.ipc attach I get Fatal: Unable to attach to geth: dial unix /home/...
4
votes
2answers
1k views

Anatomy of a Geth Wallet File

Just want to make sure I can fully recover a geth wallet. There are many parts to a typical wallet file: {"address":"ethaddress", "Crypto":{"cipher":"..aes","ciphertext... So basically theres the : ...

1 2
3
4 5
14