Questions tagged [go-ethereum]

Go Ethereum (short: Geth) is a Golang implementation of the Ethereum protocol.

Filter by
Sorted by
Tagged with
0 votes
1 answer
26 views

what consensus client is used while making personal blockchain with geth ( go-ethereum)?

Modular EVM based blockchain have multiple layers. mainly consensus layer and execution layer. Execution layer options: Besu Erigon Go Ethereum Nethermind consensus clients options: Lighthouse ...
0 votes
3 answers
38 views

Next Halving BlockChain BlockNumber?

Hello every hope all are good ? I'm asking where can you get the block halving number from a BlockChain ? Is there a way in web3 ? Can i find it in WhitePaper for each BlockChain ? Need i check block ...
0 votes
0 answers
17 views

How to get hash of transaction **before** it has been mined in web3j?

I have been working on my project where I use web3j. I work with ledger over contract wrappers where the actual call to the ledger is encapsulated over variety of layers. The issue is I need to get a ...
  • 380
0 votes
0 answers
10 views

my full node isn't detecting any transactions or events in the testnet

So i'm trying to run a full node on my linux vm and made a js script that detects transactions on BSC Tesnet and print them basically a transaction tracking bot but the bot isn't receiving anything i ...
1 vote
1 answer
79 views

Geth reports it is synced when Lighthouse Beacon is not synced

My lighthouse beacon node is still syncing, but if i go to the geth console to check if it is synced I get: eth.syncing false Is this normal behaviour? Or is my setup wrong? [ is there another ...
  • 11
0 votes
0 answers
221 views

Connect Web3.js to Geth in Goerli Testnet

I am trying to connect to a Goerli node using geth in which I have deployed a smart contract via Remix. In fact I'm trying to call the function of this smart contract which returns a value for example ...
0 votes
0 answers
17 views

Transferring eth from a geth/attach wallet

A few years ago I made a miner for ETH. I set up a wallet using geth/attach and started mining. Being a total noob, I didn't/don't know what I was/am doing so I have problems accessing my eth. So the ...
  • 1
0 votes
1 answer
10 views

Adding chain to gnosis UI

I just followed steps to add new chain using this repo: https://github.com/safe-global/safe-infrastructure But when I click on Nothing happens. In order to bring up this safe-infrastructure and ...
0 votes
0 answers
32 views

is this private Etherem based blockchain design spec possible for implementation?

I'm new to Ethereum / blockchain, so if some of the questions seem naive or stupid I apologize in advance. The motivation is, I need a blockchain that can dynamically change its token supply based on ...
0 votes
0 answers
11 views

Getting the value of a event topic with Go ethereum [duplicate]

I have an event that has two indexed arguments, a uint256 and a string. I am successfully able to get the Hex value of the event topics i am looking for but I am having trouble to decode the string ...
0 votes
1 answer
32 views

Auto Liquidity(Auto-LP) Bep20 contact

I needed an automatic liquidity system for the rise and future of the token, how can I do this? (I used ready-made code since I'm new to solidity) pragma solidity ^0.8.2; contract Token { ...
0 votes
0 answers
35 views

Identify/ Detect Proxy and upgradeable smart contracts

Is there anyway I can identify Proxy, or Upgradeable smart contracts through either etherscan or an archive node?
1 vote
0 answers
20 views

What is the difference between snap and full synchronization?

I would like to know about the differences between snap sync and full sync in as simple words as possible. For example, what commands cannot be executed when using snap sync versus full sync, or ...
0 votes
0 answers
20 views

Which ethereum node is better to choose?

I need to get information about transactions in new blocks (when a new block is mined, I get information about every transaction in it). Which node should I use for this, light/snap/fast? Which one is ...
1 vote
1 answer
27 views

Change reexec value from 128 in full node sync

I need to retain not only the most recent 128 block in full mode but e.g. last 1000 blocks for my purposes. The greater the value of reexec the longer the tracing will take because more blocks have to ...
4 votes
0 answers
83 views

Sudden increase in Ethereum's blockchain size in private network

I am running a private Ethereum network with 100 nodes, using geth with the Proof-of-Authority consensus protocol. When measuring the blockchain size over time (using du -cs ~/.ethereum/mychain/geth/...
  • 294
0 votes
0 answers
29 views

Fatal: Error starting protocol stack: listen tcp "MyAWS_Istance_IPaddress":8545: bind: The requested address is not valid in its context

I've been looking everywhere for this error and I can't figure out how to get my node to start. I'm developing a private network using Puppeth and I'm trying to connect my nodes to the Amazon EC2 ...
  • 11
0 votes
0 answers
12 views

How can recharge account balance without reconfig GoEthereum In a PoA private network?

As we know, In a PoA private Ethereum network, There is a genesis file and the balance of each account is determined there and the network is live based on this config. Now, What should we do if we ...
  • 481
0 votes
1 answer
38 views

How can i build a bridge from scatch and of course a secure bridge which no one could hack it?

i want to know how bridge work because i want to work on my own bridge for a personnal project. Any good link for documentation and tutorial ? Thanks !
1 vote
0 answers
17 views

How to automatically start GoEthereum when Microsoft Windows starts?

How can I config or set up my Geth so that whenever the operating system restarted, Geth automatically run again by the same config and initial commands and automatically it be synced to the network . ...
  • 481
0 votes
1 answer
22 views

Geth Chain Config. Is it possible to get the node ChainConfig (Constantinople: blocknumber, ...) from geth console?

Is it possible to get the node ChainConfig (with hardforks blocks numbers activation like Constantinople: blocknumber ...) from the geth console? Is geth using only ChainConfig from genesis.json or is ...
  • 317
0 votes
1 answer
18 views

Hardforks. How Ethereum hardforks could update instead of restart from scratch given that "geth genesis.json init" restart a blockchain?

How are hardforks made on Ethereum? I assume it's necessary to update genesis.json file to define blocks at which the hardofrks happen (example Constantinople: 7 080 000). But if when we enter "--...
  • 317
0 votes
1 answer
113 views

While I was working on solidity project I got the following error

npx hardhat run scripts/deploy.js --network localhost is not working. It says TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider') My deploy script const hre = require("...
  • 3
2 votes
0 answers
48 views

Simulate transaction replacement on go-ethereum SimulatedBackend

i'm writing in go-lang and using go-ethereum package to interact with nodes. For testing purposes go-ethereum provides blockhchain simulation via SimulatedBackend (https://github.com/ethereum/go-...
0 votes
0 answers
49 views

GETH: Faster Dirty cache flushing to resist larger syncs on geth crashes (small POA network)

i'm currently running a set of 3x miner nodes, 2x RPC nodes and 1 bootnode on an AWS cluster (Proof of authority nodes) using GETH. What i've noticed is that due to very small traffic on my network , ...
0 votes
1 answer
37 views

Finding size of a block number

Below is a simple programme which includes web3 :- let web3 = require('web3'); var real = new web3(web3.givenProvider) // web3.givenProvider is having value of my infura endpoint discuss(); ...
0 votes
0 answers
50 views

Sync Full Archive node from snap sync node in a geth based Private Blockchain

I have questions about the Geth sync mode. So, I have a private blockchain with POW consensus and currently, it is running with 1 snap sync node, and 1 full archive node. can I recover all data from ...
0 votes
0 answers
17 views

Does someone know the reason for these errors happening?

Does someone know the reason for these errors happening??
1 vote
1 answer
38 views

Why are old outdated blocks loaded after restarting the ethereum node?

I have an Ethereum full node running on a vps, and I noticed that it was abruptly out of sync for three days. I searched in the logs, and found this. My system daemon received a shutdown signal, and ...
0 votes
1 answer
53 views

the method eth_blockNumber does not exist/is not available

Hello hope are good ? I have my own full node with a ssh tunnel My code is : async function test (){ const url = 'ws://localhost:8546'; const web3 = new Web3(new Web3.providers.WebsocketProvider(...
0 votes
2 answers
37 views

Web3.js Integration not working

Below is the simple programme which I wrote to use EVM compatible functions in VS code. let web3 = require('web3'); const tr = new web3(web3.givenProvider || "ws://localhost:8545"); // ...
  • 33
1 vote
1 answer
52 views

Is mev-geth analougue to geth?

I was reading about ethereum node impementations and found something about mev-geth, wich is a fork of geth made by flashbots. If i want run a node just to propagate my own transactions and query the ...
  • 189
0 votes
2 answers
69 views

Error: connection not open on send() when trying to connect NodeJs to my Private Geth Node

hope all are good ? I have a pb with my FULL NODE i can't connect it with my nodeJs files I can use my node if file's url is localhost:8546, i'm able to run my script from my server only but i want ...
0 votes
0 answers
22 views

Private Ethereum Blockchain Connection with AWS (PoA consensus)

Is it possible to connect a private Ethereum blockchain with AWS? An alternative to Amazon Managed Blockchain (which forces me to use Hyperledger) and amazon EC2, is there?? Also, how can I implement ...
  • 11
0 votes
0 answers
25 views

Why is the ethereum node constantly out of sync?

I have a fully synchronized node that has been working successfully for the last week. But since yesterday I started noticing oddities. It was constantly out of sync, as if it was not receiving new ...
1 vote
0 answers
15 views

go-ethereum licensing under proprietary software [closed]

Hello Ethereum Community, The company I work for is developing a Ethereum-related software that uses go-ethereum for a wide range of cases. However, software itself will be closed source (proprietary),...
0 votes
0 answers
29 views

Event data from Smart Contract parsing issue with go-ethereum

I am unable to get the full data emitted from SC event by using types.Log channel. Is there any way so that I can have all the data from an event emitted? The event I'm trying to parse: PairCreated(...
  • 103
0 votes
0 answers
12 views

Next block's miner on Ethereum chain

Well, when Ethereum was on POW, I know that it is impossible to know the next block(pending block)'s miner. We can know the miner exactly after the block is confirmed. But on POS, I heard that the ...
3 votes
4 answers
73 views

May I connect peer of another network?

Geth has functions addPeer() and addTrustedPeer(). And I wonder is it possible to connect peer of another network? Does Geth have some security restrictions for such scenario? For example, comparing ...
0 votes
0 answers
8 views

Nodes can't connect to each other on virtual machine with public IP (direct internet) - Private

I created a local private chain. I created the 4 nodekey for each node. Each node is running in our datacenter with a public ip (direct internet access without NAT and without firewall at all). IP ...
0 votes
0 answers
41 views

Process of syncing blockchain nodes between themselves (BSC network)

I have read Geth documentation and was a little confused by description of synced process (I haven't found description of this process in BSC docs). Doc tells that nodes can't sync if they will not be ...
0 votes
0 answers
40 views

MockV3Aggregator

module.exports = async ({ deployments, getNamedAccounts }) => { const { deploy, log } = deployments; const { deployer } = getNamedAccounts(); const chainId = network.config.chainId; if (...
0 votes
0 answers
18 views

How can I transfer the EthW / Eth Pow Ether from a forked Gnosis Safe Vault?

At the time of the merge (September 15th 2022), I had some ETH on my still active Mainnet Safe Vault. I'm aware that Gnosis Safe team won't support the ETW fork chain, and because of that I have been ...
  • 151
1 vote
2 answers
55 views

Exposing RPC port: how to expose rpc on [::]:8545 and not only on localhost

I have a simple question but I cannot find the problem. I want to expose the RPC port of my node in my local network (so that I can access it from another computer). I run the node with : geth --http ...
  • 45
1 vote
0 answers
8 views

Is a FIND_NODE ethereum packet encrypted

I was trying to inspect ethereum discovery protocol packets on my local machine using a private blockchain created using geth. I captured the packets using a tcpdump, and imported the pcap file into ...
  • 11
2 votes
0 answers
19 views

What values for the global state variables does geth use for estimateGas?

What values for the global state variables does geth use for estimateGas? For example, block.timestamp.
  • 21
0 votes
0 answers
19 views

How to remove signers Geth Ethereum?

I need help to remove Signers. I've used the Command clique.propose("address", false) but the signers are still not gone. I use config poa. Please help.
0 votes
2 answers
33 views

TypeError: No matching declaration found after argument-dependent lookup [0.8.17]

I have this errore: TypeError: No matching declaration found after argument-dependent lookup. --> Spaghetti Finance Rewards.sol:54:9: | 54 | require(msg.sender.call{value: _value}("Transaction ...
0 votes
0 answers
230 views

Prysm is stuck because of Geth Bad block

I run a full node with Geth+Prysm. Tonight I had the following error with Prysm: ethereum-prysm[40846]: time="2023-01-12 01:32:49" level=info msg="Finished applying state transition&...
  • 45
1 vote
0 answers
32 views

Why did the sync speed of the geth node drop?

my node synchronization speed has dropped a lot. If earlier 2048 blocks were stably imported in a couple of seconds, now (blocks from five years ago) the speed dropped to 30-60 blocks in 8 seconds. I ...