Skip to main content

All Questions

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

How to update the web3 API version in geth?

I spent a couple of hours on upgrading web3 API to v0.15.3 in geth (on Mac OSX) with no effect. I installed the newest geth and it says: web3.version { api: "0.13.0", client: "Geth/v1.3.4/darwin/...
rethsid's user avatar
  • 1,898
3 votes
1 answer
2k views

How to fork Ethereum from the current state?

I've read a lot of tutorials and guides that teach how to set up your own private network from scratch. However, how would I do that from the current state of the blockchain? Instead of generating a ...
Tiago Loriato Simões's user avatar
3 votes
1 answer
2k views

geth v1.8 unable to download the last 65 blocks for the mainnet

Currently running geth 1.8 on Ubuntu 17.10 on an SSD. Anytime I start geth, it will always sync until it hits the last 65 blocks where it just hangs and looks like it stays stuck at downloading the ...
hextet's user avatar
  • 1,593
2 votes
1 answer
3k views

How can I create a new public blockchain cloned from Ethereum?

Basically I know how to create a private blockchain, or Testnet, But how would you go about creating a complete fork of Ethereum, while changing the name of Ethereum to something custom ? For ...
Leths's user avatar
  • 183
1 vote
1 answer
454 views

How to create Bitcoin-like wallet structure for Ethereum?

'Hi everyone! Any suggestions for an architecture to reach to Bitcoin's wallet structure for Ethereum? Appreciate any help, R. Geth version: 1.10.12-stable Geth's web3 api version: 0.20.1 OS: Windows ...
Rouhollah Joveini's user avatar
40 votes
4 answers
34k views

Error: account unlock with HTTP access is forbidden when unlock an account in Geth console

personal.unlockAccount(eth.accounts[0],"") Error: account unlock with HTTP access is forbidden I run Geth in a Docker container and use docker exec -it bootstrap geth --datadir=~/.ethereum/...
Wayne's user avatar
  • 401
14 votes
1 answer
3k views

Why do some blocks contain no transactions?

While poking through my Geth logs I noticed that block 1,000,006 doesn't actually contain any transactions. Why is that?
Richard Horrocks's user avatar
12 votes
5 answers
18k views

Invalid JSON RPC response: "" In Browser-Solidity

I'd like to connect private geth node from browser-solidity, however it returned the error Invalid JSON RPC response: "". Please check the following picture for details. Could you tell me how to ...
Toshi's user avatar
  • 2,357
12 votes
6 answers
24k views

Is there a quicker way than geth --fast to download the Ethereum blockchain?

I had the Mist client installed, but it hadn't been updated in a few weeks so I tried renaming the chaindata folder (instead of deleting it) and downloading the blockchain with geth --fast as that is ...
dhuyvetter's user avatar
9 votes
3 answers
7k 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 ...
feebel's user avatar
  • 93
9 votes
1 answer
2k views

Losing connection between nodes on private network

I have 3 nodes running on a private network. After asking this question, I've manually added node1 as peer to node2 and node3, so my network looks like this: _______ ...
Henrique Barcelos's user avatar
5 votes
1 answer
5k views

How to check the VM trace using Geth?

How to check the VM trace using Geth? I've ran geth with --verbosity 6, and stuff like this gets logged: I0525 01:26:12.418607 core/vm/vm.go:157] running byte VM b82addc7 I0525 01:26:12.419818 core/...
Fernando Tiberti's user avatar
5 votes
2 answers
4k 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?
BokkyPooBah's user avatar
  • 40.4k
2 votes
1 answer
1k views

New Ethereum Account with Infura

Can I create a new ethereum account using Infura like we do using web3.personal.newAccount();
user2079992's user avatar
1 vote
1 answer
1k views

How to retrieve ETH accidentally sent to a contract that is watch only [duplicate]

I sent my ETH to a contract I created on accident but it is stuck and I can't withdraw it now am I able to recover this or is it gone. I've been watching the wallet and the amount hasn't changed so I'...
user108499's user avatar
38 votes
6 answers
48k views

How long is the first sync supposed to last?

I've been running Geth (latest version) for around 12 hours and it's still not finished. The command prompt shows this : INFO [05-21|12:05:00] Imported new chain segment blocks=1 txs=...
J. Doe's user avatar
  • 383
29 votes
3 answers
11k views

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

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 network as the network grows ...
Pii's user avatar
  • 580
21 votes
1 answer
8k views

The meaning/specification of "config" in genesis.json

As I tried to search from Google, there are some genesis.json example files to customize the parameter of genesis block in Ethereum private blockchain. In the file, there is a part called "config" "...
Thomas Lau's user avatar
21 votes
3 answers
7k views

Why does ethereum creates a new block,without even a single transaction? [duplicate]

I'm running a private Ethereum blockchain. When I set one of the nodes to mine, that node continuously creates blocks, even if there are no transactions inside of it. What is the purpose of this?
Heisenberg's user avatar
17 votes
3 answers
16k 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.
paulmorriss's user avatar
  • 2,559
17 votes
3 answers
22k views

Geth can't connected to via Websocket

I am trying to connect to Geth via Websockets but unfortunately i am given 403 error. I am using the --ws --wsport XXXX args. Everything is done in a local instance, so that would be surprising if ...
DanteDiaze's user avatar
17 votes
2 answers
9k views

To which remote ethereum nodes does Metamask plugin send signed transactions? and are they exposed to denial of service attacks?

So Metamask allows in it UI to connect to different ethereum nw (public/ testnet) right. Do who is maintaining these peers? Can I trust these peers?. If so, can I setup similar service on my machine ...
siddesh sangodkar's user avatar
14 votes
3 answers
20k views

how do you know your db is synced in geth?

In order to answer this question there is a need to get the timestamp of when the database is synced with geth. I can think of two ways of doing that : find the 1st occurrence of 1 block in the geth ...
euri10's user avatar
  • 4,640
14 votes
1 answer
13k views

geth init, what are the arguments?

this command works but yields a warning of future removal so I'd like to use new option init : ➜ ~ go-ethereum/build/bin/geth --datadir="~/testgeth/" --genesis ~/testgeth/customgenesis.json --port ...
euri10's user avatar
  • 4,640
13 votes
2 answers
15k views

What is an HD wallet for Ether and how to create one using node.js?

I know the basics of blockchain and how to use geth. However, I'm curious to know how to build a wallet using nodejs. What I understand is that you can create a account using geth console (private ...
Shivam Nema's user avatar
11 votes
4 answers
1k views

"potential rewrite attack" message on Geth

When I was sending Ether using Mist I got the following message on Geth. I0528 18:34:57.312997 core/blockchain.go:959] imported 1 block(s) (0 queued 0 ignored) including 3 txs in 19.344963ms. #...
wacax's user avatar
  • 1,378
11 votes
1 answer
8k views

how to produce enode from node key?

What is the algorithm to produce a bootnode's enode url ? For example, I have this data: Node key: 59233b25bfa4c214a8713e07a395a5d11478de10f36c6c80ba5369541f73bc44 IP: 127.0.0.1 Port: 30303 From ...
Nulik's user avatar
  • 4,116
10 votes
2 answers
5k views

What address(0) stands for?

In the contract for EOS crowdsale: https://etherscan.io/address/0xd0a6e6c54dbc68db5db3a091b171a77407ff7ccf#code line 469: assert(address(EOS) == address(0)); "assert" will test if both sides of ...
jfjobidon's user avatar
  • 773
9 votes
1 answer
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 ...
sfish's user avatar
  • 555
7 votes
2 answers
2k views

Verifying Modular exponentiation operation in etherum

I have Alice who should do some cryptographic operations off-chain. Then a smart contact has to verify equality by performing Modular exponentiation operation. I attached an image of the off-chain ...
Heba Mohsen's user avatar
6 votes
2 answers
7k views

How to apply pyethrecover.py on v3 .json/transfor v3 .json to .v1

I'm trying to get pyethrecover.py running via Python on one of my .json files that were created by Ethereum-wallet for Mac. It seems that my .json file is v3 and the pyethrecover.py only works for v1 ...
Dev's user avatar
  • 61
3 votes
2 answers
3k views

How to execute a time based transaction? Here's my sample contract

pragma solidity ^0.4.0; contract Test { uint[] timestamp; function setTime(uint _timeToset) public returns(bool) { timestamp.push(now + _timeToset); return true; } function ...
MallRoy's user avatar
  • 57
37 votes
8 answers
78k views

Insufficient funds for gas * price + value

Sending Address has over 1 Eth in current Balance. Using the Geth console, I can send many transactions of any amount less than .033 eth.sendTransaction({to:'...
John Heeter's user avatar
36 votes
11 answers
77k 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 ~/...
Imroz's user avatar
  • 871
30 votes
2 answers
28k views

Get a peer list for my geth node

How can I use Geth (or any other client) to get a list of my peer nodes on the Ethereum network. I see there's a function to get the number of nodes using the web3 api, but I need a list of node IDs ...
firescar96's user avatar
21 votes
2 answers
38k views

How to view latest block number of a geth node in the console? [duplicate]

How to get information about the state of the blockchain on a geth node? There are mentions of admin.chainSyncStatus in the documentation, but it is undefined on my 1.4.0 node. The admin.nodeInfo ...
redfish's user avatar
  • 497
21 votes
4 answers
46k views

Full list of geth terminal commands

Is there a comprehensive list of the commands available in the geth terminal anywhere? (eg. miner.start(), eth.accounts, admin.nodeInfo, etc.)
Kris Randall's user avatar
21 votes
2 answers
27k 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 ...
eterps's user avatar
  • 724
18 votes
3 answers
20k 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 ...
ZMitton's user avatar
  • 2,790
17 votes
2 answers
7k views

How to make Ethereum mining difficulty static for a private chain?

I have implemented private chain in ethereum but its difficulty level increases by time as a result the mining process slows down. Is it possible to make the difficulty static or disable it in testnet....
Abhishek Ranjan's user avatar
16 votes
1 answer
6k views

How can I create a listener for new transaction with Ethereum RPC calls?

I am trying to create mini-service which would allow me to subscribe for incoming Ethereum transactions (coinbase example). I thought that in Ethereum it could be done with eth_newFilter and ...
Andrey Samokhvalov's user avatar
15 votes
2 answers
18k views

Calling debug_traceTransaction from web3 API

I want to use debug.traceTransaction to get internal transactions from NodeJS using web3 API. I'm using web3 0.17 beta and I don't see any debug_traceTransaction on the code. Am I missing something or ...
Pablo Yabo's user avatar
  • 2,743
14 votes
3 answers
5k views

Can Mist be attached to a Geth node on a different computer over HTTP RPC?

I gather that Mist will automatically look for Geth on a local machine via IPC to save it maintaining its own blockchain. Is it possible to tell it to look for an instance of Geth on another machine ...
tallguin's user avatar
  • 143
13 votes
2 answers
3k views

What is the difference between a static node and a trusted node?

In the docs, static nodes are described as Geth supports a feature called static nodes if you have certain peers you always want to connect to. Static nodes are re-connected on disconnects. There ...
tayvano's user avatar
  • 16k
12 votes
7 answers
18k views

How to add peers on a private network?

I have created a private blockchain on two different machines. Now I want these nodes to connect with each other as "peers". I am using geth console. I have tried the following command: > admin....
Sukhmaninder's user avatar
11 votes
2 answers
8k 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. ...
Richard Horrocks's user avatar
11 votes
3 answers
3k 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 ...
Paul S's user avatar
  • 4,291
10 votes
4 answers
21k views

How to increase gas limit in block using geth?

When I try to execute methods from my smart-contract, I get limited by the gas limit in a block and can't do anything. How to change the gas limit in the block?
Andrei Zolin's user avatar
9 votes
4 answers
6k views

Optimal way of waiting for transactions to be mined in geth

I'm currently checking if a transaction has been mined using the following function (using web3.js): function waitForTx(tx_hash) { var result = null; // This is not really efficient ...
Sebi's user avatar
  • 5,284
8 votes
2 answers
5k 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.
J. Eth's user avatar
  • 155

1
2
3 4 5
16