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

Get actual gas cost from a method call in a private node by modifying geth's code

I have a private ethereum network and using Geth, to speed things up, I want to modify how the gas estimation is done. Using RPC call for eth_estimateGas is too slow when it comes to multiple concurrent operations. I see this is done in function…
CristiC
  • 22,068
  • 12
  • 57
  • 89
2
votes
0 answers

Ganache Cli private network, all ethers on the network go to 0 after a while

I create a ganache cli and initialize my accounts to have ethers using ganache-cli -h "159.89.119.189" -a 3 -e "1000000000000000000000000000" --secure -u 0 -u 1 -u 2 -s 20 but after a couple of minutes, all accounts on the network are 0. I'm not…
Dike Jude
  • 199
  • 3
  • 9
2
votes
1 answer

Runnig geth in ec2 gives error, panic: runtime error: invalid memory address or nil pointer dereference

What Iam trying to achieve is to run an ethereum/client-go on an aws EC2 instance and being able to access it from remote client side, for playing around with Rinkeby test network I am trying to run an geth docker image on ec2 instance on…
Siv
  • 1,026
  • 19
  • 29
2
votes
0 answers

HTTP Basic Authentication in Web3js

I have geth running in remote server and is protected using HTTP Basic Auth. I tried the below two methods. both don't work: let web3 = new Web3( new Web3.providers.HttpProvider( 'http://' + "username" + ':' +…
Narayan Prusty
  • 2,501
  • 3
  • 22
  • 41
2
votes
0 answers

Ethereum private chain resets back to block 0 when restarted

I am currently running the latest Geth 1.8.1 Iceburg version. I setup a private Ethereum network following a tutorial and everything including mining works fine, but every time I restart Geth, the chain resets back to block number 0 all the mining…
2
votes
1 answer

eth.getBalance() always returns 0 in testnet

I am developing ethereum wallet api. For now, I want to get the balance for specific address by using eth.getBalace(). I run testnet following alias geth = 'geth --ipcpath /home/tom/.ethereum/testnet/geth.ipc' geth console At this time, I can see…
Railway
  • 71
  • 2
  • 13
2
votes
2 answers

How to get the data of an ethereum block using geth

How can i get a block info from a running ethereum node using geth or nodejs or any other language? For example to get a block data from bitcoin, there is a config file which run a blocknotify.sh file when a transaction is confirmed and in that…
Farhan
  • 751
  • 1
  • 9
  • 17
2
votes
2 answers

How to speed-up Geth transactions in private blockchain?

I'm testing Ethereum smart contracts with web3j and Geth. Geth is running with scripts like…
4ntoine
  • 19,816
  • 21
  • 96
  • 220
1
vote
1 answer

If RPC node crashes in private Ethereum network, transactions in mempool might be lost?

In a private Ethereum network, transactions get submitted to the network via a single RPC node. If the RPC node crashes at some point, is there a possibility of loss of transactions that are in its mempool and haven't been propagated yet to the…
AndCode
  • 384
  • 1
  • 10
1
vote
1 answer

why does my "newPendingTransactions" geth subscription not get any events?

Im facing the following challenge. I try to subscribe to "newPendingTransactions" via websocket. I can successfully connect to the websocket. When connected, I would expect a stream of new incoming pending transactions, which I can read out and…
heiningair
  • 441
  • 1
  • 6
  • 23
1
vote
1 answer

Ethereum Full Node needs too much storage

I have a small question regarding my geth node. I have started the node on my machine with the following command: geth --snapshot=false --mainnet --syncmode "full" --datadir=$HOME/.ethereum --port 30302 --http --http.addr localhost --http.port 8543…
theNewGuy
  • 33
  • 3
1
vote
0 answers

How to fix a "hex string of odd length" error

I'm trying to write a script in Go to interact with a smart contract on Binance Smart Chain using an RPC and the github.com/ethereum/go-ethereum package. However, I keep getting "panic: hex string of odd length" when trying to call a method…
what_4
  • 19
  • 2
1
vote
0 answers

Error: invalid argument 0: json: cannot unmarshal hex string without 0x prefix into Go struct field TransactionArgs.data of type hexutil.Bytes

Make solidity file and compile with this solcjs --bin --abi -o bin HelloWorld.sol HelloWorld.sol pragma solidity ^0.4.15; contract HelloWorld{ address owner; string greeting = "Hello World"; function HelloWorld() public { owner…
whitebear
  • 11,200
  • 24
  • 114
  • 237
1
vote
0 answers

Why assembly delegatecall() returns 1 instead of 0 when calling zero (0x000...) address?

I have this code in a proxy fallback: assembly { calldatacopy(mload(0x40), 0, calldatasize()) let result := delegatecall(gas(), destination, mload(0x40), calldatasize(), mload(0x40), 0) returndatacopy(mload(0x40), 0, returndatasize()) …
Whytecrowe
  • 31
  • 3
1
vote
1 answer

geth eth_protocolVersion is returning error : "the method eth_protocolVersion does not exist/is not available"

i am using stable geth. geth version Geth Version: 1.10.7-stable Architecture: amd64 Go Version: go1.16.6 Operating System: darwin GOPATH= GOROOT=go i am having issues with calling the eth_protocolVersion : postman error ==> "error": { "code":…