Questions tagged [geth]

Go implementation of command line tools for Ethereum blockchain

Go implementation of command line tools will allow you to connect your server to or run your application on the Ethereum blockchain

Ethereum CLI: https://www.ethereum.org/cli

Github: https://github.com/ethereum/go-ethereum/wiki/geth

237 questions
2
votes
1 answer

what is the difference between a node and a client in the ethereum context?

I'am new to ethereum, I canno't find the difference between a client and a node. I concider the client to be an mplementation of the node in a programming language such as go or js?
Salah-SH
  • 21
  • 3
2
votes
0 answers

How to parse the node information in the geth/nodes directory by leveldb?

I want to get all the node IP addresses of ETH, so I need to parse the geth/nodes directory, but I can't find the specific data format and cannot parse it. I found a same problem, but there is no…
Z-LL
  • 21
  • 3
2
votes
1 answer

Web3j call a variable in a smart contract

I am trying to get the value of a variable in a Smart Contract using solidity, geth and web3j. The contract HelloWorld is very simple: pragma solidity ^0.6.10; contract HelloWorld { uint256 public counter = 5; function add() public { …
2
votes
1 answer

Geth: balance is always 0 on --rinkeby

According to Etherscan i have 7.5 Ether, but when I execute eth.getBalance(eth.accounts[0]) inside the Javascript console it returns always "0" this is how I am connecting geth to rinkeby (is running for more than 24 hours) geth --rinkeby this is…
Gelso77
  • 1,763
  • 6
  • 30
  • 47
2
votes
2 answers

Can't install older version 1.8.27 of Geth on Ubuntu 16.04

I have tried sudo apt-get install ethereum sudo apt-get install ethereum=VERSION And sudo apt-get upgrade ethereum To install a specific version of Geth but I can't.
BP1997
  • 41
  • 5
2
votes
0 answers

How to convert 20 length byte Ethereum wallet address to hex format found in Metamask?

Using some of the code from Geth's source code https://github.com/ethereum/go-ethereum, I'm trying to find a way to generate valid Ethereum wallets. For starters, I'm using the hex version of secp256k1 prime MINUS 1, which is…
Luke Zhang
  • 343
  • 1
  • 4
  • 14
2
votes
0 answers

geth account import or new command doesn't create an account; instead returns Killed

I'm trying to create/import a new ethereum account using geth, but instead of returning public address, geth returns Killed. I'm using quorumengineering/quorum Docker image on a Kubernetes cluster. Here's account creation script: echo -n…
Moazzem Hossen
  • 2,276
  • 1
  • 19
  • 30
2
votes
1 answer

How to run geth without console?

I need run geth on server without console. How to do this? just not add argument console? And can I attach to geth running without console, when I want to stop geth, or open console.
2
votes
0 answers

Metamask is not showing the ethereum address balance on local geth instance

Steps to reproduce: Start local geth node with following command: geth --rinkeby --rpc --rpcaddr "127.0.0.1" Connect metamask chrome extension to http://localhost:8545 Create a new ethereum account, ABC, on metamask New account is visible on…
2
votes
2 answers

Ethereum wallet shows it has ethers but geth does not show the balance

I am starting to learn ethereum. I have downloaded the Ethereum Wallet, created two accounts and using Rinkeby faucet I got 3 ethers in one of the account. I can see the balance in my wallet. I then ran geth --testnet --datadir d:\data and it…
unni
  • 63
  • 8
2
votes
1 answer

What gonna happen if two geth clients( in two different machines) running with the same nodekey file (node id) within the Mainnet?

If someone copies the nodekey to another machine, and runs the geth with that key. Test it, just don't quite understand the underlying mech.
Zalberth
  • 308
  • 1
  • 2
  • 12
2
votes
1 answer

The output length of bootnode -writeaddress command is 64 bytes, not 128 bytes as expected, why?

I want to get the first part of enode url format, which is hexadecimal node ID, by compiling the source code from ethereum, I build and run cmd/bootnode/ from the goland, with my priviate key supplied, the command is like this: bootnode -nodekeyhex…
Zalberth
  • 308
  • 1
  • 2
  • 12
2
votes
1 answer

insufficient funds for gas * price + value using geth --dev

I keep getting an error deploying a smart contract (using netheruem). The error is: insufficient funds for gas * price + value with geth command: geth --dev --rpc --rpcport "8545" --rpcapi="db,eth,net,web3,personal,web3" console I read that I need…
AshT
  • 535
  • 1
  • 8
  • 20
2
votes
1 answer

ethereum miner not giving ether to coinbase account

I am relatively new to Ethereum. I was trying to set up a private test network. I used the following genesis file: { "config": { "chainId": 15, "homesteadBlock": 0, "eip155Block": 0, "eip158Block": 0 }, "difficulty": "20", "gasLimit":…
raghav
  • 23
  • 3
2
votes
2 answers

Add Peers does not add a peer in Geth console

I am trying to add a peer. I created two nodes using the following commands on geth.The boot node creation command is geth --datadir ./chaindata3 --port 30304 --nodiscover --networkid 12 --rpc --rpcport "8546" --rpccorsdomain "*" --ipcdisable…
cbhangale
  • 87
  • 2
  • 8