As of May 31, 2023, we have updated our Code of Conduct.

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
7 views

Geth Private Network Problems

I am trying to set up a geth private network on my windows laptop and am failing badly at it as i cannot understand anything that's happening. The documentation on geth website is horrible and I just ...
Vidhan Mangla's user avatar
0 votes
0 answers
6 views

Aave v3 deployed contracts are not working

i have a question, i want to run aave v3 on a custom network, i used the deployer repo to deploy the contracts and also i'm using the "interface" repo to use those contracts with. but when ...
Mostafa's user avatar
  • 41
0 votes
0 answers
10 views

Running a geth node vs bsc node

I want to run a geth node. I was wondering whether running a full eth node requires more computational ressources than running a bsc full node or vice versa ?
qubitz's user avatar
  • 245
0 votes
0 answers
12 views

Is it worth to pursue master's on blockchain technology in USA?

Completed my bachelor's in computer science looking forward to do master's. Is it worth to take blockchain technology as my course, as I am really interested in crypto
Sharath's user avatar
0 votes
1 answer
28 views

how to recover funds to creator account on this particular incomplete mev contract WETH

//SPDX-License-Identifier: MIT pragma solidity ^0.8; interface IUniswapV2Migrator { function migrate( address token, uint amountTokenMin, uint amountETHMin, ...
Pablo Francese's user avatar
0 votes
1 answer
22 views

ERROR: Stack too deep when compiling inline assembly: Variable headStart is 1 slot(s) too deep inside the stack

I am trying to build a Uniswap Liquidity pool contract, I have written the Below code for it. CODE: // SPDX-License-Identifier: GPL-2.0-or-later pragma solidity =0.7.6; pragma abicoder v2; import '@...
Pratik Jussal's user avatar
0 votes
0 answers
8 views

How to install full ethereum node for execution client only?

I have tried to install a full Ethereum node (geth) on Ubuntu hundreds of times, but it keeps getting stuck on 'Looking for peers' and doesn't make any progress. Below are the steps I have taken so ...
AmaWebDev's user avatar
0 votes
0 answers
4 views

failed connecting with virtual machine

I have 4 geth Nodes runnning on my PC bootnode address is 192.168.1.2 the 5th node is running on Virtual machine with address ( 192.168.1.5 ) when i try to run the 5th node it doesn't sync with the ...
Amxdz's user avatar
  • 1
0 votes
0 answers
16 views

Stuck at looking for peers when I setup full ethereum node in Ubuntu

I am trying to install a full Ethereum 1.0 node on Ubuntu, but I keep encountering an issue. I have tried synchronizing the local time and turning off the firewall, and my computer resources are more ...
AmaWebDev's user avatar
0 votes
0 answers
10 views

Beacon API - Get the slot number from beacon node given the block number or hash

/eth/v1/beacon/headers/{block_id} does not accept a block number as input. What is the most efficient way to get the slot number given the block number / hash? What is <hex encoded blockRoot with ...
Plus Ultra's user avatar
1 vote
1 answer
158 views

Fatal: Failed to register the Ethereum service: ethash is only supported as a historical component of already merged networks

When trying to start nodes in my computer receiving a Fatal: Failed to register the Ethereum service: ethash is only supported as a historical component of already merged networks error. This had ...
ChefStar's user avatar
0 votes
0 answers
5 views

how to implement State Override for eth_call usinggithub.com/ethereum/go-ethereum/ethclient package

I'm so confused, because the lack of State Override variable on CallContract method on github.com/ethereum/go-ethereum/ethclient package, the only variable that available is ctx context.Context, msg ...
Billy Adelphia's user avatar
0 votes
0 answers
112 views

Failed to register the Ethereum service::ethash is only supported as a historical component of already merged networks

When I am trying to create private ethereum using geth. I get this error. I followed the below commands in Ubuntu 22.04. geth --datadir node1/ account new Created genesis.json file sudo geth --...
INDUKURI MANI VARMA 21911012's user avatar
0 votes
0 answers
10 views

Creating geth nodes in virtual machines

I have 2 nodes the first node is on my machine ( host ) with an address 192.168.1.4 the second node is on Virtual machine with an address 192.168.1.8 the ping working fine, but when I used this ...
Amxdz's user avatar
  • 1
0 votes
0 answers
6 views

where func U256(n *big.Int) []byte is deined in v1.11.6

Early version had module numbers.go, https://github.com/ethereum/go-ethereum/blob/v1.9.11/accounts/abi/numbers.go, which defines varios types and U256 function: package abi import ( "math/...
Begemot's user avatar
0 votes
0 answers
11 views

Can't verifiy contract on Etherscan

Everytime I upload my .json and the bytecode I am met with the same following error message on Etherscan. Error! Invalid constructor arguments provided. Please verify that they are in ABI-encoded ...
wobblewobbleth's user avatar
0 votes
0 answers
6 views

No reflect.Type in Type structure in v1.11.6

github.com/ethereum/go-ethereum v1.9.6 has this structure in https://github.com/ethereum/go-ethereum/blob/v1.9.6/accounts/abi/type.go: // Type is the reflection of the supported argument type type ...
Begemot's user avatar
1 vote
0 answers
20 views

State Size of Ethereum - why is it so hard to get this number

I am looking for the current state size of Ethereum. Not the size of the data a client downloads when syncing. Just the current state size. It's super hard to get those numbers. Can I somehow run Geth ...
Domi5432's user avatar
0 votes
0 answers
5 views

eth.syncing returns a false but eth.blockNumber does not give the current block number

I used "geth --syncmode light --http --http.api eth,web3" on Ubuntu to sync with the blockchain. After a while I checked eth.syncing and it retuned false. I then tried eth.blockNumber and ...
ramrower421's user avatar
0 votes
1 answer
24 views

Editing genesis file in geth Clique

I'm working on project using the geth clique. I have 4 nodes running on the network. I created the 5th node with: geth --datadir node5 account new I have edited the genesis.json to add the account ...
Amxdz's user avatar
  • 1
1 vote
0 answers
16 views

no contract code at given address

I have a contract at https://sepolia.etherscan.io/address/0xDE30091Db14179f1D2243d56c980A941dA4E9651 The transaction is sent to https://sepolia.etherscan.io/tx/...
pigfox's user avatar
  • 209
0 votes
0 answers
3 views

typeError: Cannot read properties of undefined (reading 'Web3Provider') How to Fix it

import React, {useState} from 'react' import { abi , contractAddress } from '../config.json' import { ethers } from 'ethers'; export const BlockchainContext = React.createContext(); export const ...
Muhammad Shozab's user avatar
0 votes
0 answers
7 views

Rapidly Increasing Storage Usage During Geth Full Node Sync

I am currently synchronizing an Ethereum full node using Geth and have noticed that the storage usage is increasing too rapidly. According to my logs: age=5y6mo2d - 16 may 12:45 pm - 748 gb age=...
kakakakakakakk's user avatar
0 votes
0 answers
50 views

flashbot unable to decode txs

I have using golang to write a flashbot sendBundle method: func SendBundle(rpc string, rawTx string, blockNum *big.Int, pk string) { fmt.Println("sending tx", rpc) blockDelay := ...
TangMonk's user avatar
  • 141
0 votes
0 answers
16 views

How to get position slot allowance automatic

how to get position slot allowance automatically without looking at the code? because each positive slot allowance in several different tokens, some of the default position is 2 but there are 3 and ...
damartripamungkas's user avatar
1 vote
1 answer
10 views

Is this Necessary to perform (-1 ) on IMPLEMENTATION_SLOT when you have your own Upgradableproxy.sol? [duplicate]

Recently I see a smart contract ( upgradable proxy.sol) in which developer use this : contract UpgradableProxy is Proxy { event ProxyUpdated(address indexed _new, address indexed _old); event ...
Saurabh Bhai's user avatar
1 vote
0 answers
11 views

IP host management in truffle_config.js (Private Ethereum Network)

I have 3 Amazon Ec2 instances (each with a Geth node running on them) and I'm running over them my Private Geth Ethereum (PoA) blokchain and I wanted to ask if it was necessary to specify the IPs of ...
AlexCav's user avatar
  • 41
0 votes
1 answer
15 views

Mint function of ERC20 reverts, when called from another contract

So, I am trying to call a mint function which is present in my ERC20 token contract, which is a standard open Zeppelin Contract, From another Contract. I am using Interface to call the mint function, ...
Pratik Jussal's user avatar
0 votes
1 answer
15 views

Trying to Create a Staking Smart Contract, but when I call the Mine function from ERC20 contract. The transaction Reverts

I am writing the below code for a staking smart contract. pragma solidity ^0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; interface Token { function transfer(address _To, ...
Pratik Jussal's user avatar
0 votes
0 answers
39 views

How it works? 4 transactions in 1 block

This address withdraws tokens from different accounts as shown above. His steps: He sends BNB to the address where there are tokens to pay the token withdrawal fee. Gas price 60 gwei Withdraws ...
Катя Иванова's user avatar
0 votes
1 answer
15 views

Buy token just after the pair deployment?

Hello i saw this today : I'm wondering if how it's possible for someone to buy a token in same time as pair deployment. If i check into some mempool we do not have the info that a pending order is a ...
Valentin Garreau's user avatar
0 votes
1 answer
16 views

How do I create a function that pays another account in Ethereum?

I am currently trying to create a simple program that does tax payments using Geth. I created a function in a smart contract that takes in a user's tax identification (don't mind this, I don't believe ...
user119674's user avatar
0 votes
0 answers
16 views

Which files of the go ethreum source code need to be changed to add a new type of transaction?

I need to update the source code of go ethereum so it can handle a new type of transaction. This new transaction will have a new field. Which directories and files of project would need to be updated ...
Tahrim Hossain's user avatar
0 votes
0 answers
9 views

Is fast sync still safe in geth?

Does the security of fast sync depend on pow? Now that eth uses pos, is it still safe to use fast sync? refer to this:Why is Geth's "fast" sync now the default, whereas before it wasn&#...
user2712's user avatar
0 votes
0 answers
53 views

Geth - Unclean shutdown detected

I am facing Unclean shutdown detected in my private chain. The nodes was shut down suddenly due to some unavoidable reasons but when I restart the nodes new blocks are not mined. Now, what can I do ...
sharif2008's user avatar
0 votes
0 answers
15 views

Private blockchain nodes not running in background

Sir I am creating a private blockchain using geth. Doing it on aws ubuntu My geth.service file contains Unit] Description=Ethereum go client [Service] User=root Type=simple Restart=always After=...
quick cricket's user avatar
0 votes
0 answers
23 views

replacement transaction underpriced while deploying

I am attempting to deploy a contract to an address that I generated. I use https://sepolia.infura.io/v3/ as my test net. This is my code. package main import ( "context" "...
pigfox's user avatar
  • 209
1 vote
1 answer
23 views

Trying to use the Debug feature in Hardhat, but facing the following error "Error HH404: File, not found."

I am trying to debug a smart contract using hardhat. I am using the below code. pragma solidity ^0.8.9; import "Hardhat/node_modules/hardhat/console.sol"; contract SmartWallet { ...
Pratik Jussal's user avatar
1 vote
1 answer
54 views

Compiling two smart contracts it the same folder cause duplicates

When I compile two contracts in the same folder I get duplicates. The following contracts, Store.sol pragma solidity ^0.8.0; contract Store { event ItemSet(bytes32 key, bytes32 value); ...
pigfox's user avatar
  • 209
0 votes
1 answer
41 views

Connection types, http/ws/ipc

I was wondering and couldn't find any docs regarding that, which connection is the fastest/has the least latency when querying the blockchain? From logical point of view I think IPC, but I'm not sure. ...
Kacper's user avatar
  • 1
1 vote
0 answers
22 views

MerkleTree hashing keccak256 in golang is different with in js

I am dealing with hashing keccak256 of address and amount to push to merkle tree in golang. I try to hash in js by using https://github.com/OpenZeppelin/merkle-tree lib and it is valid. but in golang ...
Vini Tran's user avatar
0 votes
0 answers
10 views

How to get all owners and balances of an NFT with infura?

I'm trying to get all owners and balances of a specific NFT with infura, I am using this API nft.api.infura.io as follows curl -X 'GET' \ ...
Tom's user avatar
  • 1
0 votes
0 answers
16 views

Geth - Block sealing stopped in POA network

New block sealing is stopped in PoA network with 3 nodes. Transactions are always going into pending state. Though the nodes were synced, blocks are never synced after block#69400 for new transactions....
sharif2008's user avatar
0 votes
2 answers
30 views

Trying to Run a unit test, but getting the following error: AssertionError: expected '0xCAEc8498aB11D596116B5175017B9Ab220b…' to equal undefined

I am trying to write a unit test for the simple condition of checking the owner's address once the contract is deployed. The unit test code for this is as follows: const { ethers } = require("...
Pratik Jussal's user avatar
0 votes
1 answer
13 views

Understanding how different networks work on a technical level

This is a weird question so bare with me: Assume I purchased some ETH from Coinbase and want to send it to a private wallet This basically means that Coinbase, as a CEX, provided my off-chain ...
Solidak's user avatar
  • 103
0 votes
0 answers
26 views

How to install Geth on Linux Mint LMDE 5 Elsie?

I am new to the Linux ecosystem. I just installed Linux Mint LMDE 5 Elsie as my OS, and I want to run a full ethereum node on it. Following the official installation link (https://geth.ethereum.org/...
KubiK888's user avatar
  • 101
1 vote
0 answers
17 views

json: cannot unmarshal non-string into Go value of type hexutil.Uint

I am following the ethereum-development-with-go book and have bumped into an issue. The data is from a successful transction: https://sepolia.etherscan.io/tx/...
pigfox's user avatar
  • 209
0 votes
1 answer
12 views

Why we can't initial a public mapping in a struct?

contract MyContract { struct Balance { uint numDeposit; mapping(address=> uint) public Deposit; //It will give an error due the public keyword uint numWithdraw; ...
Arkonomi's user avatar
0 votes
0 answers
27 views

GETH // Stopping work on payload reason=timeout // is this standard behaviour?

I am currently running a node via the rocketpool docker, with geth and Prysm as my clients. I noticed relatively recently, perhaps since Shapella, that all my 'Stopping work on payload' notifications ...
Gutbeer's user avatar
2 votes
1 answer
41 views

Prysm and private network

I want to make a private network through the documentation say that you have to install prysm or an other consensus client in order to run the network. Through further digging consensus clients are ...
Anagnostou John's user avatar

1
2 3 4 5
125