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
0 answers

Parallel transaction blockchaon causing replacement error or nonce too low error

I want to perform several transaction from an account at a time , basically calling different smart contract using golang (not geth , using go binding for Smart contract interaction). when i carry out this transaction, the "Transaction replacement…
0
votes
0 answers

Error: gas required exceeds allowance or always failing transaction - web3js

I get the following error when I try to deploy a smartcontract using web3js. But if I deploy the same contract using Truffle or geth console, deployment succeeds. Error: gas required exceeds allowance or always failing transaction Smart Contract…
No8
  • 77
  • 1
  • 9
0
votes
1 answer

My ethereum got the error: Status not available at the moment

When I send a transaction to BC, I get some error information which is Status not available at the moment." What does this mean? How can I fix this problem? My Solidity contract code is as following: function UserRegister(string memory…
HeiHei
  • 11
  • 3
0
votes
1 answer

Go-ethereum private network in Proof-of-Authority problem: call contract method but nothing response

When I created a 2 nodes private network with POA consensus and it works fine when I sent a simple transaction. But when I deploy a simple contract SimpleStorage.sol with Truffle, I want to call the get() method by using the myetherwallet, but it…
Lin Wilson
  • 59
  • 4
0
votes
1 answer

How to update deployed Ethereum smart contract with ABI only through console (Truffle)

I need to update value on deployed contract ( I dont have sol neither it has been deployed on my platform ) I want to update param with setter in contract and call getter to see changed value .. always default value comes back! here is the code Im…
Maher Abuthraa
  • 17,493
  • 11
  • 81
  • 103
0
votes
1 answer

Unable to deploy contract in quorum(truffle)

was working with deploying contracts using truffle(truffle migrate) for manually created nodes as per "https://docs.goquorum.com/en/latest/Getting%20Started/Getting-Started-From-Scratch/" (using raft-consensus) . I am able to add peer(other machine)…
Mohan Raj
  • 1
  • 1
0
votes
0 answers

How can I create a crypto wallet and import the new custom ERC20 Token

How can I create a function which allows to import new custom ERC20 Token and Send & Receive function in my Crypto Wallet? I'm using React Native? Any example codes or github repos will be helpful. Desire solution: In my Crypto wallet, I would like…
David
  • 607
  • 1
  • 6
  • 19
0
votes
0 answers

Regex validation for ethereum signed transaction raw

const Web3 = require('web3') const web3 = new Web3(`https://mainnet.infura.io`) const privateKey = 'privateKey' const tx = { from: '0x1', to: '0x2', value: web3.utils.toWei('3', 'ether'), gasPrice: web3.utils.toWei('3',…
Yegor
  • 3,652
  • 4
  • 22
  • 44
0
votes
1 answer

Getting mined blocks instead of the supposed returned values

I've just deployed a Smart Contract using the ethereum wallet. I got the Smart Contract address , I copied its ABI from remix and verified it on ethereum wallet,it was active and I could see all its methods. Then I tried to call it from my nodejs…
DIIMIIM
  • 557
  • 7
  • 28
0
votes
2 answers

How do "geth", "EstimateGas", and "Suggest (Gas) Price" work?

My friend asked me how does geth estimates gas limits and gas prices. How does it do this?
maczniak
  • 1,082
  • 1
  • 8
  • 13
0
votes
0 answers

How to improve the availability of a private Ethereum network

I want to be able to connect to any available node on my private Ethereum network. I think the requirement is similar to the service offered by Infura. I want to be able to replicate similar behavior on a private, locally hosted Ethereum network. I…
user538578964
  • 723
  • 9
  • 25
0
votes
1 answer

How can I startup bootnode?

I'm trying to start up bootnode, but I got couldn't get connect information. It's suppose to be like this bootnode --nodekey=boot.key INFO [06-22|00:43:07] UDP listener up …
user11045152
0
votes
1 answer

truffle test fail when --network flag is set

truffle config Below is my truffle.js file. As you can see, development and privateLive are exactly the same. // truffle.js module.exports = { networks: { development: { provider: () => new PrivateKeyProvider(privateKey,…
Bin Yan
  • 117
  • 8
0
votes
1 answer

geth event newPendingTransactions does not occur

I've got running geth with next command: $ geth --testnet --networkid 3 --verbosity 3 --syncmode light --ipcdisable --ws --wsapi "db,eth,net,web3,personal,txpool,admin,miner" --wsorigins '*' In second console I connect to geth jsonrpc with…
Alexey Egorov
  • 2,221
  • 2
  • 18
  • 21
0
votes
1 answer

Both web3.eth.accounts.create and web3.eth.personal.newAccount don't work

I already know what is the difference between accounts.create() and personal.newAccount() . My Geth setting is like this, --rpcapi "admin,db,eth,debug,miner,net,shh,txpool,personal,web3" web3.eth.getBalance()runs very well. But both…