Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
2
votes
4answers
2k views

Ethernum balance wei to ether from JSON-RPC

Is there any way to get ethereum balance in "ether" rather than wei from JSON-RPC?
0
votes
1answer
693 views

TypeError: web3.eth.getTransactionCount(…).then is not a function

I'm using web3 version '^0.20.6' in my node application and did following for connecting to web3 but still getting the error while calling the method getTransactionCount. const Web3 = require('web3');...
0
votes
1answer
17 views

Quorum Nodes not syncing

I have 5 nodes with quite different block numbers( one is stuck at 201504, another at 280432 and so on) , they don't seem to be syncing. No particular error in Quorum Logs as well. Any transaction ...
0
votes
1answer
564 views

Problem with sha3.keccak_256() update method in Python

I made a simple SHA3 Python script to generate Ethereum addresses and priv/pub keys. After that I sent some ETH to those addresses but then found out that priv keys do not correspond to the addresses ...
0
votes
0answers
7 views

How to connect to Rinkeby without using Geth / Parity?

First let me explain my development environment. I am using Jupyter Notebook to play around with the Web3.py front-end code and Remix for the Solidity smart contract code. I am using the Metamask ...
1
vote
1answer
493 views

How to create a new transaction

Using go-ethereum iOS framework I'm trying to create a new transaction. Using GethNewTransaction i get an error (Use of unresolved identifier GethNewTransaction). An example is found here: https://...
0
votes
0answers
17 views

invalid JSON RPC when using custom domain name

geth --testnet --networkid 3 --syncmode "fast" --datadir "." --cache=2048 --rpc --rpcport 8545 --rpcaddr example.ropsten.hk --rpcvhosts example.ropsten.hk --rpccorsdomain "*" --rpcapi="web3,miner,...
0
votes
0answers
118 views

Solidity and Web3js codes are not working inside the private Ethereum(geth) network but same codes are working in public ethereum

geth version : 1.9.0-stable-52f24617, node version : v10.16.3, npm version : 6.9.0, web3 version : -- web3@1.0.0-beta.36. genesis.json: { "config": { "chainId": 966308076, "homesteadBlock": 0, "...
0
votes
1answer
430 views

How do I uninstall ethereum-unstable from ubantu 17.10?

I want to install the stable version of ethereum. I have performed the below steps to download the unstable version of it. sudo add-apt-repository -y ppa:ethereum/ethereum sudo apt-get update sudo ...
0
votes
1answer
56 views

Initial Genesis difficulty on an ethereum clone

I've created an ethereum clone that i hope someday can become a public blockchain. This is working good so far, however i have a question regarding the initial setup for once i set this live. If i ...
1
vote
1answer
299 views

How to print transaction details like block number and other input parameters on front end?

My problem : I want to show transaction details like block hash , block no and input parameters. but it was showing that metamask does not support callback. our function is not waiting till ...
0
votes
1answer
622 views

Changing geth cache while geth is running

I removed chaindata db by doing "geth removedb" and am doing a fresh download of the blockchain. I allocated 2048 MB of RAM to my geth sync by submitting "geth --syncmode 'fast' --cache=2048 console". ...
4
votes
1answer
743 views

Cant get peers on rinkeby

After following the instructions on rinkeby for joining the network, I cannot seem to get more than a single peer that also wont get me up to date. Eventually my node kicks that peer off, and then I ...
0
votes
2answers
62 views

Contract's transaction count in a certain period

I want to determine the number of transactions of a contract in a certain period. My question is that in the transaction receipt, if we want to say that contract A has x number of transactions will ...
1
vote
1answer
570 views

Recovering transactions from ldb files

I have a geth-based ethereum installation that started crashing with "Missing trie node" errors. In the chaindata folder I have hundreds of ldb files, nearly all of which are around 2.1Mb - but the ...
1
vote
1answer
249 views

Locally submitted transactions to the light node gets lost if the node is restarted

What happens to the transactions submitted to light node in the following scenarios? 1) Light node does not have a network connection with its peers.I could find that the transactions are submitted ...
2
votes
2answers
1k views

How to add a wallet to your geth account list

I just created a new account on myetherwallet.com and installed geth on windows. I opened cmd and typed in 'cd/' and typed 'geth account list'. In return, I got a warning saying there's no etherbase ...
0
votes
1answer
206 views

Block sealing failed err=“unauthorized signer”

i am trying to run geth environment on windows after i have successfully set it up on linux. When trying to deploy contract on geth like i did in linux it produces following error. loadScript('...
0
votes
1answer
776 views

Ethereum Pending Transaction

I am trying to send 2 transactions. eth.sendTransaction({from: eth.accounts[0], to: eth.accounts[1], value: web3.toWei(5, "ether")}) eth.sendTransaction({from: eth.accounts[0], to: eth....
0
votes
1answer
316 views

Getting ethers into a Ropsten account

I am following a course. I have loaded Geth and started it with the following >"c:\program files\geth\geth" --testnet --syncmode fast --rpc --rpcapi db,eth,net,web3,personal --cache=1024 --rpcport ...
3
votes
0answers
21 views

account unlock with HTTP access is forbidden [duplicate]

I am using in the geth console and there is a similar error. Do I add "--allow-insecure-unlock" when I "init a node"? personal.unlockAccount(eth.accounts1) Any suggestion would be helpful. Thank ...
0
votes
1answer
1k views

What ports do I need to open when setting up a mining pool

I am setting up a pool as a VM on my home computer using the instructions provided by https://github.com/sammy007/open-ethereum-pool/ I have followed the instructions and managed to get a test miner ...
1
vote
2answers
340 views

Storing data on IPFS using KMS and ethereum

I am trying to build a blockchain on ethereum but keeping the data related to blocks in some distributed file storage system like IPFS or Storj and storing the hash of data in blocks. But we need our ...
1
vote
0answers
17 views

Strange points of Casper algorithm

Currently, Ethereum developers are developing Casper Algorithm for Ethereum 2.0. According to their proposal, some validator are chosen randomly but validators has permanently authority to verify ...
0
votes
2answers
27 views

Distribute coins across a private network

I've set up a private network and generated around 100 addresses. Exactly 80 of those addresses have a balance of 10 or more ETH, while the rest of the addresses have balances of 0. I've also ...
0
votes
1answer
414 views

ethers.js connect to private net RPC

I'm trying to work on ethereum and currently I'm using ethers npm package and I was trying to connect it to my private net which I will be using it for testing. I've run my geth with this command. ...
0
votes
1answer
27 views

Is there any website for provide APIs for making transaction to different blockchain such as Ethereum, Litecoin, BTC, Neo etc

I want build a wallet which manages multiple coins and I'm looking for a website which provides APIs for transacting to different blockchains.
1
vote
2answers
279 views

how do i cash out mined ethereum?

I'ved tried my luck on ethereum mining with this https://github.com/angelomilan/ethereum-guides/blob/master/GPU-cloud_mining.md And I think I have some ethereum. > eth.getBalance(eth.coinbase)....
0
votes
1answer
320 views

Running a full node of ETH

I need to run a full node of ETH and its bound tokens for an experimental exchange site. How will I do to differentiate ETH from others tokens ? Is there a way to download the ETH blockchain ...
0
votes
1answer
24 views

How does Geth query the blockchain?

This question has probably been already answered somewhere else but I didn't find anything on the internet so I'm asking here. I wonder how clients such as Geth query the blockchain to get specific ...
2
votes
1answer
23 views

Good source for TPS and transaction latency / finality for private Ethereum blockchains

I am looking for a good source / sources to compare TPS and transaction latency (How long it takes to send a transaction until it is mined) for different private blockchain solutions. Especially I am ...
0
votes
1answer
31 views

how can we know the address of the peers in Private ethereum block chain to send the transactions

Hi iam new to private ethereum block chain and geth. Can anybody suggest me how can we know the receivers address to send the transaction using geth console on sender side?
0
votes
2answers
1k views

Gas requirement of function <function_name>() high: infinite

Please help explain why a very simple function gets "Gas requirement of function <function_name>() high: infinite" warning in Remix. Here is my simple contract: contract Simple_Contract { ...
0
votes
1answer
10 views

Sending ETH or Tokens from the command line to be integrated in a PHP script

I'm relatively new to using ETH on the command line. Do I use Geth or Parity? All I want to do is be able to send some ETH or Tokens from my eth private key. Which way is the best way to do it? I plan ...
1
vote
1answer
295 views

What happened to eth.pendingTransactions ? Is there an equivalent?

I am just interested in the number of pending transactions which I usually get from Etherscan , I have seen references to eth.pendingTransactions online but I cannot find that or an equivalent in the ...
0
votes
3answers
54 views

i am trying to send ether to a list of addresses from backend

Below are few lines from the contract in which I am basically trying to send some ether to an array of addresses. Now, when can run this code in remix solidity by replacing "value" to "msg.value". But ...
0
votes
1answer
955 views

calculate average network hashrate and block time in geth

If you visit ethstats you see two cards named AVG NETWORK HASHRATE and AVG BLOCK TIME, How can i get them in geth?
0
votes
1answer
402 views

Running A Smart Contract With Two Nodes on Truffle

We have installed truffle to two nodes and we initialize our private blockchain with: $geth --datadir node init genesis.json Then we run geth on both nodes with: $geth --datadir node --nodiscover -...
1
vote
1answer
366 views

when do I know geth --fast is up to speed?

When do I quit geth --syncmode "fast" and run geth --syncmode "full" , how do I know it's done ? currently running web3.eth.getBlockNumber() .then(console.log); web3.eth.isSyncing() .then(console....
0
votes
1answer
21 views

getAccounts in web3 js undefined

I am working on dapp with web3js 1.0.0.37-beta with reactjs. I got blank in web3.eth.getAccounts. Following is my code App.js import React, {Component} from 'react'; import '../node_modules/...
0
votes
0answers
11 views

Where can I get list of peers to add to my geth node

My geth is running with peerCount=3 I want to add more peers to the node. I know using admin.peers() I can add but,from where I can get the list of responding/ good peers? Help is appreciated. ...
4
votes
1answer
491 views

Contract transaction couldn't be found after 50 blocks in Kovan

When deploying contracts on the ledger I faced with issue Error encountered, bailing. Network state unknown. Review successful transactions manually. Error: Contract transaction couldn't be ...
0
votes
1answer
39 views

how to use backup node in web3 connection?

node1= running on port 8545 => current synced block is 2000, and node2= running on port 3545 => current synced block is latest When i am using web3 into another page and print web3 object it ...
1
vote
1answer
2k views

Memory usage and limits for go-ethereum

geth (and swarm) seem to require a lot of memory, and there are also reports that they tend to an all you can eat approach to system limits. 1) What are the actual memory requirements for geth? 2) ...
1
vote
0answers
16 views

Cross-posted from Stack-Overflow: Using Google Cloud Key Management Service to sign an Ethereum transaction

Cross-posted from question I've been working on writing a signer service for an Ethereum transaction manager and I need to sign Ethereum transactions using Google KMS Golang APIs. I'll try and ...
1
vote
1answer
22 views

How to develop a new module in go-etherum like eth, admin, etc

For instance, the module is named "mymodule". It can be used in geth console and web3 like mymodule.funcA(),web3.mymodule.funcA(), Thanks
0
votes
1answer
78 views

Connecting Metamask to geth

In here it's said we need to run below command line to let Metamask connect to geth: geth --rpc --rpccorsdomain="chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn" I'm running a private ...
0
votes
2answers
773 views

Do I need to use geth --rpc with ethminer?

I've seen some tutorials where people do geth account new geth --rpc ethminer -G -F your.poolurl.com:port/WALLET --farm-recheck 200 And others that are just simply geth account new ethminer -G -F ...
0
votes
0answers
12 views

Does the use of Non-interactive zero-knowledge proof (zk-snark) will eliminate the use of (consensus algorithm e.g. work proof)?

The privacy of the blockchain transaction is a high-demand topic these days due to some application use case requiring strict privacy protection. Some of the techniques applied to blockchain ...
0
votes
0answers
15 views

Difference between git clone and add apt repository while installing ethereum [closed]

As I started to set up geth on my Ubuntu machine, I came across two different methods of doing it. One website instructed to run the command "git clone https://github.com/ethereum/go-ethereum" while ...