Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
185 views

Geth never fully sync

on an aws machine, lighthouse say it is synced. but Geth is not, for a few days now its syncing but keep the same distance between current and highest block(from eth_syncing response): "...
1 vote
2 answers
30 views

Unable to get value from a smart contract

I try to deploy a smart contract on a private block chain (geth started with --dev). However, even if my contract is as simple as possible, I cannot get the stored value. pragma solidity ^0.8.8; ...
  • 11
0 votes
0 answers
62 views

How to connect to Goerli console on Geth?

I'm in the attempt of simply connecting Geth to the Goerli testnet and and being able to use the web3 library in the console on the testnet. I tried opening a Goerli instance in Geth and then ...
  • 23
0 votes
1 answer
71 views

Unable to connect MetaMask to private blockchain running on AWS EC2

Happy New Year to everyone! So I have an EC2 machine (with IP address 44.212.96.143) where I started a private block chain. I ran geth there using the command below: geth --networkid 14333 --datadir ....
1 vote
2 answers
139 views

What is the maximum size of memory in solidity?

I am digging into memory and the free memory pointer in solidity. I have been wondering what the maximum size of memory in a single execution of a function in solidity? As I know, when memory is used,...
  • 149
0 votes
0 answers
35 views

Error while deploying 00-deploy-mock.js

local network detected! Deploying mocks An unexpected error occurred: Error: ERROR processing /home/surajsahoo/hh-fcc/hardhat-fund-me-fcc/deploy/00-deploy-mocks.js: Error: invalid BigNumber value (...
1 vote
0 answers
26 views

How do you find every self-destructed contract using geth?

I'd like to use my go-ethereum node to find every self-destructed contract in the history of Ethereum and get their addresses. What is an efficient way to do so?
  • 9,859
0 votes
0 answers
6 views

How can reconfig a PoA based private Etherem without stop Geth and run it again?

As I've experienced so far, for reconfiguring a private Ethereum based on PoA, we should stop the running Geth, modify the genesis file, then init and run Geth again. Is there a way that we can ...
  • 491
0 votes
0 answers
21 views

Go script using which I can simulate any transaction using geth and see the outputs of the transaction before actually sending it on the blockchain

Hello everyone. I need a go script using which I can simulate any transaction using geth and see the outputs of the transaction before actually sending it on the blockchain. I want to give a list of ...
0 votes
2 answers
17 views

Issues with custodial and non custodial wallet smart contract interactions

We have smart contract for minting ERC721 tokens. The non custodial mints work fine through Javascript but custodial mints are always in pending state. We are using go-ethereum to make that smart ...
1 vote
2 answers
76 views

Reentrancy attack fail

I am trying to test this code for a reentrancy attack on remix but I keep getting the following error: transact to Thief.attack errored: VM error: revert. revert The transaction has been reverted to ...
  • 21
1 vote
0 answers
40 views

Range had no valid blocks to process with Beacon set up on Prysm

While setting up the beacon with Prysm, I am getting the error Range had no valid blocks to process I am trying to set up the node for Ethereum. I would really appreciate the help. The official guides ...
1 vote
1 answer
23 views

In solidity how can I add multi dimensional array with struct

In solidity I wonder if I can define an array that can store array of strut inside another array I have gave an example bellow. [ [{id: 1, val: "val1"},{id: 2, val: "val2"},{id: ...
  • 11
0 votes
0 answers
16 views

How to create a new enode for my public chain to sync

how do i create the enode key and generate enode using my server Ip address. although is Ethereum main net node necessary in my code base.
  • 1
1 vote
0 answers
23 views

how can I fork Ethereum and turn it into my own sidechain how can I build my smart contracts in it?

how can I copy Ethereum source code and node software client to modify the data structure to turn it into my own sidechain and how can I build smart contracts in the sidechain so that the sidechain ...
0 votes
1 answer
35 views

is it possible to make a whole blockchain from scratch using javascript?

I was wondering if javascript has alot of tools of doing stuff and help with hashing and helper nodejs modules that help with web3 development but my question is it possible to make something like ...
0 votes
1 answer
32 views

how deploy() in web3 works?

I've been trying to understand how the deploy() in web3 works, but I can't find any source that helps me. I wanna know how deploy() in web3 interacts with Ethereum blockchain and deploys a smart ...
0 votes
0 answers
8 views

How can I recover my token sent to unlisted wallet address in an exchange [duplicate]

How can I recover my erc-20 unlisted token sent in error to a custodial wallet that I dont have the private keys.
  • 1
0 votes
0 answers
24 views

Node not continuing to sync to latest block

> eth.syncing { currentBlock: 16251527, healedBytecodeBytes: 3866346, healedBytecodes: 555, healedTrienodeBytes: 1425183625, healedTrienodes: 5710325, healingBytecode: 0, ...
0 votes
0 answers
97 views

What data do you lose when you prune Geth?

I am reading the hardware requirement for Geth here and I noticed this portion: At the time of writing (September 2022) a 2TB SSD is recommended for a full node running Geth and a consensus client. ...
0 votes
0 answers
17 views

Copying chaindata of private network from one computer to another

I have created a private Ethereum network on my Linux pc, where I have a number of accounts and some deployed smart contracts. This network is for testing purposes, and has only one mining node (...
0 votes
1 answer
28 views

Issues about Peer to peer concepts

Hy every one, I'm new in this world, and i'm trying to understand deeply how blockchain works. I'm little bit confused about the peer to peer concept. How many peers have Ethereum blockchain, ...
  • 1
0 votes
0 answers
23 views

How can i sync blockhain of two localnodes?

i'm new to ethereum. I ran two local nodes from the same genesis. One node has a blockchain filled with data, the other is just empty, I wanted to synchronize them for learning purposes. After I added ...
  • 1
1 vote
0 answers
18 views

Arbitrum: Mapping L2 blocks to L1 batches using RPCs

I'm looking for a way to programmatically map L2 blocks to their corresponding rollup batches in L1 using RPCs. Is there a way to do this, and if so, what would be the best approach? Any help or ...
2 votes
0 answers
291 views

Getting ALL pending tx from txPool

I'm working on top of geth in golang. My first goal would be to stream all pending transactions from the txPool. The problem is that when I run my script, I can't manage to catch 100% of pending ...
  • 21
1 vote
1 answer
253 views

How many GB is the ethereum Blockchain goerli and other testnets?

How many GB is the ethereum Blockchain goerli and others testnets? I could not find this information for testnets, if anyone knows this info using diferents sync modes in Geth (snap, full and archive) ...
  • 189
0 votes
1 answer
13 views

Spot revert tx root cause in empty function call with struct as a parameter

I am debugging one interesting issue. I have a contract. I have a test coverage for this contract. I have a private locally deployed chain for quick prototyping where this script partly automate ...
  • 380
1 vote
1 answer
31 views

Can events be emitted WITHOUT a transaction?

I am curious as to why the emission of Ethereum events is tethered to the fact of a transaction being entirely mined I realize that we can also make calls to public view functions, which do NOT ...
0 votes
1 answer
60 views

Get transaction hash for a call to smart contract in Go

I have been following https://geth.ethereum.org/docs/dapp/native-bindings to make a call to a smart contract. Given an Ethereum transaction can take anywhere between 15 seconds to minutes, I don't ...
0 votes
0 answers
28 views

Checking contract verification status on Etherscan using an API

I am trying to create a script that will automatically alert me of new ERC20 tokens that have been created on the Ethereum network and that may be worth investing in. As part of this process, I would ...
1 vote
0 answers
25 views

Error: Cannot find module 'merkle-patricia-tree/secure'

I am trying to run the following script using NodeJS to interface with the LevelDB files stored by Geth: //Just getting the requirements var Trie = require('merkle-patricia-tree/secure'); var levelup =...
0 votes
0 answers
29 views

How to reduce blockchain size requirements

In order to manage personal wallets without depending on external apps, I have a 2TB SSD to store the ethereum blockchain. I'm using latest geth (1.10.26) together with lighthouse (3.3.0) as consensus ...
  • 101
0 votes
1 answer
17 views

Can anything other than Native Token be sent with internal transactions?

Can anything other than Native Currency(ETH, Matic and so) be sent with internal transactions?
  • 77
0 votes
0 answers
15 views

How to change account password using geth javascript console

I am using latest 1.10.26 geth released, and want to change the password of an existing Ethereum account by using geth javascript console, but haven't found any relevant information in the ...
  • 101
0 votes
0 answers
58 views

Decoding chaindata stored on Geth's LevelDB using Python

I've been trying to read the transactions and block data directly from the LevelDB files (.ldb) stored within Geth's chaindata/ directory. To do so, I first tried to extract the keys stored on LevelDB ...
0 votes
0 answers
11 views

Is this the right function to confirm 2 block added ahead of the current block?

await web3.eth.getBlockNumber() .then((nextblock) => { if (nextblock >= blockNumber + 2) { return; } waitTransction(blockNumber) }).catch(() => { ...
0 votes
0 answers
45 views

Can't deploy contract into a private Ethereum network by Geth as the web3 provider

I've set successfully a private Ethereum network by Geth and now I need to deploy contracts there. I use web3.js for interacting to the network and use each Geth node as the web3 provider for each ...
  • 491
1 vote
0 answers
52 views

How to get MEV relay?

There are several types of the nodes which support MEV and they are using different relays. For example, this is Flash-bots node https://etherscan.io/address/0xdafea492d9c6733ae3d56b7ed1adb60692c98bc5 ...
0 votes
2 answers
36 views

Does solidity support varargs arguments?

I have to extend my modifier to support different number of input arguments. Modern languages as Java support varargs arguments, but I do not see any information about it in solidity. Here is the ...
  • 380
0 votes
0 answers
13 views

Why Ethereum Private Network shutdown after sometime

I'm running Ethereum Private Network but sometimes after 10-15 hrs it gets stopped by giving the error attempt authentication failed. How can I make sure my node is continuously running?
1 vote
0 answers
13 views

How to run Ethereum light node by using Geth

after the ethereum merge (POS) how to run ethereum mainnet light node by using Geth, when I try to run light node I'm getting the error "Looking for peers"
1 vote
1 answer
42 views

Is there any ipv6 bootnode?

Roughly speaking, the most popular Ethereum client: geth determines its external IP by inspecting the endpoint from ENRequest's PONG message. The local IP address which receives most statements is ...
  • 11
1 vote
2 answers
64 views

How Etherscan understand a transaction of proprietary contracts such as seaport?

Etherscan can shows the internal transactions of each company's proprietary contracts, such as OpenSea's Seaport, for example "OrderFulFilled" event. How do they achieve this? If each ...
  • 77
0 votes
1 answer
27 views

Why can't the ancient directory be a symlink?

This line of code in geth shuts down with an error, if ancient is a symlink. What's the purpose of this? Alternative ways to move the ancient directory are a bind mount, or the --datadir.ancient flag.
1 vote
0 answers
41 views

How to create Proof of Stake node?

I need to create a Proof of Stake node Ethereum but I'm not be able to find the solution. I know how to create PoA and PoW networks but have no idea about PoS. e.g to create a PoA network we need to ...
3 votes
0 answers
70 views

How to tell if geth is snap syncing?

I started geth with full syncing (and synced 14M blocks) and later realized I can use snap syncing. I just restarted geth with --syncmode=snap but I can't tell from the logs if geth has switched to ...
0 votes
0 answers
22 views

What importance does this genesis hash hold in creating new chain

I created a new genesis.json and initialized it using geth I came across this line which says MainnetGenesisHash = common.HexToHash("0x52....") does this have anything to do with creating a ...
  • 1
1 vote
2 answers
34 views

What do the gas values mean in debug_traceTransaction?

I know the struct logs contain the gasCost and the gas limit for each opcode. In some cases like CALL, the gas cost appears to be aggregated from the opcodes below it. Also, all of the gas costs (for ...
  • 33
1 vote
1 answer
71 views

How to read a transaction in human readable format using web3?

I am using Alchemy API as my web3 provider and got a transaction data like this below: { blockHash: null, blockNumber: null, from: '0xa12e1462d0ced572f396f58b6e2d03894cd7c8a4', gas: '0x440f0', ...
  • 117
0 votes
2 answers
77 views

Get Method ID from all transactions in a block

I ask for your help! How do I get the Method ID for each transaction in a block. I can get the following information block = w3.eth.get_block('latest', True) print(list(block)) ['difficulty', '...
  • 1