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
848 views

Can't connect to local rinkeby node from web3.js

I'm developing a Dapp using truffle and I need to connect to a contract that I uploaded on rinkeby using truffle migrate --network rinkeby. Problem is that I'm unable to connect to the rinkeby network ...
1
vote
1answer
17 views

Duplication of events in permissioned geth Chain with clique PoA consensus algorithm

I have an Ethereum chain running on my local host via geth and i am using the clique PoA Algorithm. I have 4 authority nodes so the number of Nodes allowed to sign a block should always be 1 because ...
0
votes
1answer
2k views

CONNECTION ERROR: Couldn't connect to node http://localhost:8545

I have started geth using below: geth --rpc --rpccorsdomain * --rpcport 8545 --rpcapi personal,web3,eth,net and this is my web3.js code: <script src="/bower_components/web3/dist/web3.min.js">&...
0
votes
1answer
317 views

How increase mining speed in AWS instance?

I have setup a private blockchain in AWS micro instance using go-ethereum. In that when I start the mining process it was taking nearly 2-3 hours to mine a new block.Whereas on my local machine it was ...
2
votes
2answers
414 views

Help-A-Noob-With-Ethereum-Wallet-Blockchain-Download

I'm on a 2013 Macbook Pro / 16 GB ram / 512 SSD / 2.3 GHz I just transferred 3 ETH from my poloniex account to the Ethereum Wallet on my local machine. The thing is, the entire blockchain hasn't ...
0
votes
1answer
419 views

geth console cannot attach to geth docker container

I ask this question again although a similar question is asked here. I answered that question with what I read and thought is the correct method but heck it doesn't work for me too. Basically I run a ...
20
votes
3answers
5k views

How to add new Sealer in Geth 1.6 Proof of Authority?

Hi there Ethereum experts, I'm trying out Proof-of-Authority in Geth 1.6 for my private network and got it to work on a few nodes using Puppeth. Now, I have two questions about maintain the private ...
0
votes
1answer
14 views

Web3 - how to add WEI and ETH values correctly

I'm working on an auction feature in my DApp and having problems correctly adding together two WEI values. The contract stores two important values: 1. A minBidIncrement variable - which I've set to ...
1
vote
1answer
796 views

Am I mining at DwarfPool right?

I am using Geth and ethminer to mine at DwarfPool. I used the command geth -rpc to run geth, then I open another cmd and run the command ethminer --opencl-device 0 -G -F https://eth-eu.dwarfpool.com:...
3
votes
2answers
972 views

connect Mist to geth running in private testnet

I'm trying to run a private ethereum testnet for myself. I have installed geth 1.6.7 from the official Ubuntu PPA, and downloaded the latest Mist release from its github repo. I've run geth --...
1
vote
3answers
337 views

how to measure a function execution time in online solidity compiler

I'm using online solidity compiler and would like to measure the CPU time for executing a function by capturing the time at start and end of the function. I found example for Javascript, but when ...
1
vote
1answer
236 views

How can I create a correct seedhash in ethereum?

In the ethereum yellowpaper, about the creation of seedhash, I found that, when height is less 30000, the seedhash S = keccak256({0}32), description is: Seed hash. The seed hash is different for ...
0
votes
2answers
97 views

Golang - alloc large Wei amount to address

Im modifying the puppeth genesis wizard file for my own use case. I want to be able to assign a pre-set amount in Wei to a few chosen addresses.. Im having some trouble figuring out how to format the ...
0
votes
1answer
351 views

Failed to connect to localhost/0:0:0:0:0:0:0:1:8545

When I am doing one transaction with the help of Java web3j library, it's not connecting to localhost(my private network). And giving this error. package com.kaushik.blockchain; import java.math....
0
votes
2answers
373 views

geth attach issue between mac and windows

I am running geth on windows machine and try for geth attach in mac. I give below error: Fatal: Failed to start the JavaScript console: api modules: Post http://192.168.0.107:8545: context deadline ...
31
votes
3answers
49k views

how to unlock the account with geth?

when I use the web3 interface to sign on msgs, it tell me that the account should be unlocked, how can I manage this with geth and what exactly does unlocking mean?
37
votes
2answers
26k views

How to select a network id or is there a list of network ids?

We're starting a new open network based on the Ethereum protocol. The question is how to allocate a network id for the new network. In Ethereum we have main net, four test networks, classic with test ...
0
votes
1answer
39 views

Automatically Run Contract

I have a private ethereum network made up of multiple nodes and I would like one of them to interact with the a deployed smart contract without my input. Is it possible for create a script that will ...
0
votes
2answers
32 views

Why is a failed transaction included in the blockchain as a “failed transaction”

According to this highest upvoted answer, "but still include it in the blockchain as a "failed transaction"... What is meant by the term "gas"?
2
votes
1answer
34 views

Why Ethereum sets user balance to MaxBig256 whenever a contract query is performed?

There is a strange behaviour on user wallet balances when performing a contract call (that is supposed to have no cost). Balance is right (expected value) until a free call is requested to a contract. ...
2
votes
1answer
160 views

call graphs for solidity smart contracts

Do we have some open source tools where we can get call graphs for solidity smart contracts execution ? For ex: Suppose Function A in contract C calls some other function B so the graph should contain ...
0
votes
1answer
443 views

How to use 'geth' to find a smart contract in the ropsten testnet

I try to connect with web3.php to a smart contract, published in the ropsten test network via metamask. I used the following web3.php library: (https://github.com/sc0Vu/web3.php). To create an rpc ...
80
votes
11answers
29k views

Common useful JavaScript snippets for geth

In geth you can loadscript any .js file. I discovered this one on the wiki which I like a lot: function checkAllBalances() { var i =0; eth.accounts.forEach( function(e){ console.log(" eth....
0
votes
2answers
865 views

How can i retrieve the stored data from Block chain?

0 down vote favorite How can i retrieve the stored data from Block chain.? I have inserted details in blockchain. When i type web3.eth.getBlock("latest"), difficulty: 2, extraData: "...
1
vote
1answer
159 views

[Incorrect Password]Did Geth possibly modify my UTC keystore?

This summer (2017) I got interested in Ethereum. I started learning about it and decided to make a wallet using Geth. I vaguely remember that the first wallet I created had something wrong with it or ...
2
votes
1answer
241 views

Why would Ganache behave differently depending on geth, web3j, web3js and web3.py?

I have a smart contract token deployed in a Ganache instance. My dapp written with React and web3.js shows the same 10 accounts for eth.accounts as running the same command in the geth console. If I ...
1
vote
1answer
251 views

Pending transactions Geth private Blockchain

I have an ethereum consortium blockchain based on Azure (Geth 1.7.3). I've been experimenting with an application which has a very simple smart contract. The contracts itself, stores data that comes ...
1
vote
1answer
243 views

How to connect IPC and RPC to transact fake ethers?

I have setup 2 nodes, 1 on testRPC and the other on geth(using cmd and mist). How to sync both the nodes so that I can write a crowdfunding smartcontract for the accounts in both the private nodes to ...
0
votes
1answer
29 views

Detect failed token transfer via RPC

It seems like Etherscan can detect failed token transfer even though the transaction itself is successful and the gas isn't used completely. Like in this transfer of Huobi Tokens Is there a way to ...
0
votes
0answers
19 views

Why my geth fast node suddenly stopped running?

Fatal: Error starting protocol stack: gap (#3) in the chain between ancients and leveldb when I run geth node for ropsten by : geth --testnet --syncmode "fast" --cache=512 --rpc --ws --shh console ...
0
votes
1answer
24 views

Storing transactions result into database

I need to store the transaction details to my database. And here is my code: var rawTx = { nonce: nonce, gas: estimate_gas, to: contract_add, value: '0x0', ...
1
vote
1answer
20 views

Useful resources to help understand go-ethereum source code

I am new to ethereum community and I want to study the implementation of Ethereum (e.g. geth) and contribute to the go-ethereum project. However, I find the source code hard to understand by only ...
1
vote
1answer
84 views

How to set sealers in genesis block extradata for a Clique PoA network?

What is the format of the Clique PoA genesis extradata field to set up the sealers? This is an example: "extraData": "...
0
votes
0answers
8 views

How to setup clef signer with clef --stdio-ui

I have geth running on rinkeby network and successfully used clef as a signer using command. clef --keystore ~/.ethereum/rinkeby/keystore --chainid 4 --stdio-ui Also started geth with clef as ...
0
votes
1answer
16 views

Coinbase to Bittrex deposit gone awry? Eth vanished despite being sent to correct address [on hold]

Can somebody help me figure this out? I sent ~1.258 Eth from Coinbase to my Bittrex wallet address a couple hours ago and, despite being confirmed and sent to the correct address, it seems to have ...
1
vote
2answers
210 views

what are the consequences of using web3.eth.defaultBlock

Web3 JavaScript app API provides property defaultBlock. It is described in documentation: This default block is used for the following methods (optionally you can override it by passing the ...
0
votes
1answer
275 views

SubscribeFilterLogs - cannot unmarshal array into Go value of type types.Log

i have a problem to get the Logs. Here is the Code: query := ethereum.FilterQuery{ Addresses: []common.Address{contractAddress}, } ctx := context.Background() ethereumLogsCh := make(chan ...
1
vote
1answer
387 views

How make web3 work on?

Sorry for noob question. I installed web3 (npm install web3), but for some reason instead of calling web3 methods or showing object data, nodejs displays object structure: > web3.eth.accounts ...
0
votes
1answer
182 views

Parity - Permission Denied, Cannot write version file

I am trying to run a Parity daemon. Here is my shell command: sudo parity --db-path . --port=20000 --ws-port=20001 --jsonrpc-port=20002 --jsonrpc-apis web3,parity,parity_accounts,personal,eth daemon ...
1
vote
2answers
621 views

How can geth access contract variables through the console?

I'm using the Mist wallet just to display the contents of the contract. Bellow, you can see the code to access the contract function (submitUnits) and the result of the LoadScript when I run in the ...
0
votes
1answer
335 views

How to deploy a smart contract on a private blockchain?

I have used geth to setup a local private blockchain. I have been able to setup two accounts and send ether from one to the other and mine the transactions. Now I am trying to deploy a smart contract. ...
3
votes
1answer
410 views

Cannot make subscribe newBlockHeaders work

I'm doing this to get all blocks from the network: var web3 = new Web3(); web3.setProvider(new Web3.providers.IpcProvider("...", net)); web3.eth.subscribe('newBlockHeaders', function (err, result) { ...
1
vote
1answer
502 views

Geth settings for watching Events?

what are the optimal geth settings if you just want to listen to some events that are fired by smart contracts? I'm having a bit trouble to setup geth properly. Thanks a lot. PS: That is my ...
0
votes
1answer
606 views

How to get a pending filter only for a contract

I would like to do the equivalent of: pendingEvent = web3.eth.filter('pending'); but only for a specific contract: pendingContractEvent = myContractInstance.allEvents('pending'); or more ...
0
votes
1answer
36 views

What are the pointers for moving Ethereum into production for a private blockchain?

I am moving an Ethereum blockchain into production and I know many cloud services exist, including BaaS from Microsoft, AWS, Digital Ocean, and Google cloud services. Is there any criteria from ...
1
vote
1answer
242 views

Geth fast sync takes way too long

I am syncing my local node with rospten test network with geth sync --fast, but it takes more than 24 hours, though 99% complete, i am not able to communicate with my token contract that was deployed ...
0
votes
1answer
1k views

ethminer invalid argument: -S

using below to mine ethminer --farm-recheck 200 -G -S asia1.ethpool.org:3333 -FS us1.ethpool.org:3333 -O a9a777fc5cfc9589e413635b0b878ae4061fda2 but it said 'Invalid argument: -S' Any ...
0
votes
1answer
33 views

Deploy contract didnt resolve the promise

im facing a problem deploying a simple smart contract. When i use ganacha-cli, the program enter in a loop of confimation event, counting from 1. Thats the first problem. Output: Account: ...
0
votes
2answers
216 views

filter: logs.blockNumber = undefined

I have the following code: var filter = web3.eth.filter({ fromBlock:4076955, toBlock:"latest", address:"0x0123456789012345678901234567890123456789" }); filter.get(function(error,logs){ ...
0
votes
1answer
659 views

web3j - Unable to determine sync status of node

I have setup a private ethereum node in my laptop using below command. geth --datadir=./chaindata/ init ./genesis.json geth --datadir=./chaindata/ --rpc console The chainId in genesis.json ...