Questions tagged [go-ethereum]

go-ethereum, also known as geth, is a Go implementation of the Ethereum protocol. Use this tag for questions about creating or writing code for a geth-based Ethereum service.

go-ethereum is the most widely used client implementation for Ethereum.

Command Line Options

Install on Mac

Install brew...

brew update
brew upgrade

Install Ethereum

brew tap ethereum/ethereum
brew install ethereum

Install on Windows

Download the latest stable binary, extract it, download the zip file, extract geth.exe from zip, open a command terminal and type:

chdir <path to extracted binary>
open geth.exe

Install on Linux

sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum
430 questions
0
votes
1 answer

I observed that the etherum network accepts my transaction when broadcasted with higher nonce, Will this be a threat to the network?

I broadcasted transactions with higher nonce, for example: my current nonce is n and i broadcasted transactions from n+2 to n+{larger_number} and i observed that they are being stored in ethereum network, will this be a threat to ether network?
user8484840
0
votes
1 answer

Smart Contract in Geth using web3j

I am trying to deploy my solidity smart contract on the ethereum testrpc network. This is my solidity contract: pragma solidity ^0.4.11; contract Fibonacci { event Notify(uint input, uint result); function fibonacci(uint number) constant…
0
votes
2 answers

Writing Ethereum Smart Contracts for Role based permission

How can I write a smart contract to give role based permission for a transaction to take place. Say there are five people A, B, C, D and E. A wants to send some ethers to B. But the transaction will not take place until and unless C, D and E give…
Mouazzam
  • 469
  • 1
  • 4
  • 15
0
votes
1 answer

Truffle migrate fails, but only on main network.

I'm trying to deploy a contract to the main network ("1") that I succeeded in deploying to test-rpc and to the test network using the geth --dev flag. Here’s how my truffle.js file looks: module.exports = { networks: { development: { …
Matt Lally
  • 435
  • 1
  • 3
  • 13
0
votes
1 answer

miner.start() returning null

I want to develop a dapp and deploy on geth. I have installed geth and mist wallet. Now, when I am starting miner.start(1) to make some ethers for account. It is showing me null and no ether is getting generated. I have geth running on 1 terminal…
UbuntuCoder
  • 101
  • 1
  • 2
-1
votes
0 answers

ethers.js signature provides different signature than golang "go-ethereum"

package main import ( "bytes" "crypto/ecdsa" "fmt" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/crypto" ) func main() { hexPrivateKey :=…
riskers
  • 178
  • 13
-1
votes
2 answers

How to resolve "not Authorized 401" when accessing Geth using web3 package?

I have this code in Python from web3 import Web3 from lxml import html import requests import random from colorama import Fore, Style from hdwallet import HDWallet from hdwallet.symbols import ETH as SYMBOL z=0 w3 =…
-1
votes
1 answer

How to fix 'need genesis.json file as the only argument'?

What does 'need genesis.json file as the only argument' mean? I have faced the same problem recently, and this question above is the only mention of this problem in the Internet. Below a link to my JSON file. I have no idea how to fix this…
Daria
  • 1
  • 1
-1
votes
1 answer

Can I create private eth network that no external one can join it?

I want to run predfined 10 eth miners on private network so no one can enter the network except the 10 miners that I want. I initialized a network using geth and I enabled --nodiscover option. Is that enough to secure my network ? Note: the network…
-1
votes
1 answer

How to convert ecdsa.PublicKey to an address?

I am relatively new to cryptography, so forgive me if this is a trivial question. Is it possible to convert a ecdsa.PublicKey, to an address (ethereum), or more specifically a common.Address?
BigP
  • 117
  • 7
-1
votes
1 answer

Make command in go-ethereum installation?

i am trying to change the source code of geth and I have some doubts. I need to modify the following sentence in order to admit transactions with more data in them: txMaxSize = 4 * txSlotSize // 128KB of tx_pool.go file:…
WakiApi
  • 25
  • 5
-1
votes
1 answer

What dose Ethereum protocol version mean?

Running following command I get the response as follows: Command: curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_protocolVersion","params":[],"id":67}'…
-1
votes
1 answer

How to use the go API provided by geth to call smart contracts?

msg := ethereum.CallMsg{ To: &contractAddr, Gas: uint64(21000), GasTipCap: tipCap, GasFeeCap: feeCap, Data: } client.CallContract(context.Background(), msg, nil) I want to use this…
N Fx
  • 41
  • 3
-1
votes
1 answer

Go Ethereum, txpool Namespace, empty responses

I have access to a Geth node running with the following options: geth \ --http \ --http.addr 0.0.0.0 \ --http.port 8545 \ --http.api eth,net,web3,txpool \ --http.corsdomain '*' The node has been synced with the mode: snap. Why do all my…
-1
votes
2 answers

Remix solidity does not return result on private ethereum chain

I have just started learning ethereum and remix, and this question might seem stupid to you. I tried following codes on javascript vm embedded inside remix ide, and it works totally fine, but it fails to return the string on a private chain I set up…
Hsim WONG
  • 11
  • 3