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

How to speed up prysm sync?

I am using prysm as consensus client to sync; however, it is taking a while to sync from genesis. Is there a way to speed up?
  • 1,154
0 votes
0 answers
10 views

Can't mine transaction in a private Ethereum network by Geth!

There are two separated PCs on a private network and There is a Geth client on each PC, One for sending transactions (I call it Sender Geth), The other is for mining (I call it Miner Geth). The both ...
  • 395
0 votes
1 answer
18 views

Does the EVM execute a smart contract aagain after it has been deployed on the blockchain?

I understand that when deploying a smart contract on the blockchain in Ethereum, it is executed by the EVM. What I don't quite understand is after the contract is on the blockchain and we have an ...
0 votes
1 answer
19 views

Do all the transactions in Ethereum utilize smart contracts? even just a simple transaction that is not complicated such as Alice send Bob 5$?

If so, why is it that in externally owned accounts there is no storage and code hash (Smart contract codes) which are only available in contract accounts?
0 votes
0 answers
5 views

How to query log to get out all of pull rugged project?

There are many meme token are created at ethereum network, and most are pull rugged project, they create a meme token and remove liquidity when people bought. For example, there is a remove liquidity ...
  • 101
1 vote
0 answers
8 views

Why is the TransactionByHash function in the go-ethereum client unable to return the sender?

I learned how to get the sender's address from this question. JSON-RPC returns a result with a from field, which we can unmarshal in our struct. But I'm curious why go-ethereum didn't return ...
1 vote
1 answer
22 views

how does EVM track gas and interrupt the execution of a transaction?

As we know, the EVM will revert a transaction when out of gas. How it works? I guess the EVM put a check before executing EVERY instruction like this: accumulatedGas += gasOfLastInstruction; if ...
0 votes
0 answers
8 views

Geth Archive node does not maintain transactions

In a network archive nodes do not maintain full transaction history no matter what we did /srv/www/go-ethereum/build/bin/geth --config /srv/www/go-ethereum/config.toml --datadir /data --cache 16384 --...
  • 1
1 vote
0 answers
20 views

Ethereum Post-Merge Full Node

I am trying to run a full mainnet node on AWS EC2. I received the following warning WARN [09-29|12:33:51.514] Post-merge network, but no beacon client was seen. Please launch one to follow the chain!, ...
  • 1,154
0 votes
0 answers
10 views

Error: Returned error: insufficient funds for gas * price + value | I have enough token to pay the gas fee + value

why i am getting this error? i have enough token to pay the gas fee. there is no gas fee issue when i send token using metamask which means i have enough to pay gas fee + value which i am sending. ...
0 votes
1 answer
18 views

How can I make a gas-free network?

I was developing on a network without gas until a while ago. But the network became so slow that it created a new network. But this network requires gas. How can I zero gas?
0 votes
1 answer
6 views

Create Function Gas Fees to have a Dynamic Fees based on Gas Fees

is it possible in solidity create a function to estimate a gas fee and apply a % of fees based on gas fees ? Thanks
  • 1
1 vote
0 answers
20 views

How to accurately estimate the gas cost of smart function F call inside F itself (ie: without using `estimateGas` rpc call offchain)

Use case: I need to estimate the accurate gas cost of state-changing smart contract function F on-chain. I need to do this on-chain and inside F itself because I need to estimate the gas cost of ...
0 votes
0 answers
11 views

Deploying smartcontract with solc and geth only (I am stuck when I add parameter to sendTransaction)

I have smart contract written in solidity. I complied it with solc --bin -o bin hello.sol Then, I opened geth and unlocked my wallet and eth.sendTransaction({from:eth.accounts[0],data:"<the ...
0 votes
0 answers
24 views

how to simulate a transaction before it is mined? [duplicate]

My program needs to know how the transactions in the mempool will affect the state when mined. Does anyone know of any tools to help with this? Is is possible by chaing go ethereum source code? or ...
0 votes
1 answer
13 views

How to read ERC1155's SafeTransferFrom() transactions in golang?

Trying to read ERC1155 SafeTransferFrom events, in golang. Here is what I tried: var ( // erc 1155 logSafeTransferFromSig = []byte("SafeTransferFrom(address,address,uint256,uint256,...
  • 161
1 vote
1 answer
13 views

How the get all ETH state changes

I am writting a data aggregator for DeFi exchanges and I need to collect all historic state changes that occur in certain smart contracts of interest. I suppose one way to do it would be to do a fresh ...
  • 11
0 votes
0 answers
6 views

Can't Send eth from geth to web3.js account. How?

This code is not working. Balance on web3.js address is 0. const Web3 = require('web3'); const web3 = new Web3('https://myprivatechain.net:8293'); web3.eth.getBalance("...
0 votes
0 answers
8 views

Node js: Error [OpenError]: IO error: /var/task/matic/exceptions/eth/LOCK: Read-only file system

Can someone help me? I am using node.JS 16.17.0 (includes npm 8.15.0). The code is working locally without errors, but not when I deploy it on Cyclic and Vercel. This is the code - const fs = require(&...
1 vote
0 answers
6 views

Problem syncing to mainnet

I've successfully synced to mainnet in light mode, but I'm trying to do so with --syncmode snap. I can see that there are peers connected using the net.peerCount on the IPC. However, when I use eth....
1 vote
2 answers
23 views

transferFrom result in execution reverted: Insufficient allowance

I am trying to make working the transferFrom process. I follow the steps who are : approve(address spender, uint256 amount) -> returning 1 so it is working transferFrom(address sender, address ...
  • 11
0 votes
1 answer
13 views

When I create an account in web3.js, it is not reflected on the geth.ipc side

I confirmed web3.js and geth.ipc is completely connected with right rpcURL. on javascript side, web3.eth.accounts.create() it creates new account with address. but on geth.ipc side, eth.accounts ...
0 votes
0 answers
38 views

Sync failed from archive nodes even after reset blockchain on private network

I am currently suffering from sync fail issue while running my own private network. Over 20 nodes were fully connected each other and running consensus (or mining) as archive mode, with full sync mode ...
0 votes
0 answers
12 views

How does eth_estimateGas work? [duplicate]

I'm getting an UNPREDICTABLE_GAS_LIMIT error on goerli for a transaction but I can't reproduce it on hardhat. I'm wondering if it might be due to some subtle differences in implementations of ...
0 votes
0 answers
14 views

Can we modify the state root of contract directly from solidity?

I was learning how optimistic rollup works. Referencing this blog I understand working of optimistic rollup works as: Represent smart contract states as Merkle tree Run all transactions only on the ...
0 votes
1 answer
36 views

MEV-BOOST: Cannot connect to Builder

I am trying to experiment with mev-boost on goerli testnet but I am getting connection error in my beacon node log. MEV boost command: sudo docker run flashbots/mev-boost -goerli -relay-check -relays=...
  • 1
0 votes
0 answers
66 views

How to connect ethereum lighthouse testnet to Geth testnet command line?

I downloaded both Geth and lighthouse on my Linux server and I managed to connect both of them together in the mainnet and geth start syncing and downloading blocks ... ect These are the used command ...
1 vote
1 answer
58 views

How to retrieve ETH accidentally sent to a contract that is watch only

I sent my ETH to a contract I created on accident but it is stuck and I can't withdraw it now am I able to recover this or is it gone. I've been watching the wallet and the amount hasn't changed so I'...
1 vote
0 answers
16 views

setup the local 0x-api. internal server error in Order Watcher

I'm tring to deploy 0x-api locally, when I use the api /orderbook/v1/order to create an order, I got the 500 Internal Server Error, the error log is : req: { "id": "bbce499b-61f8-...
0 votes
0 answers
22 views

Stuck in a cylical state of "Resuming State Snapshot Generation" and "Unhandled Trie Error"

Currently running Geth 1.10.23-stable. The cyclical behavior keeps occurring and I am not sure if I should be concerned about this. Occasionally interwoven between these log entries is also "...
0 votes
0 answers
12 views

Error in compiling and migrating ERC721 contract

I am triying to deploy mi ERC721 contract in my private Blockchian. This is the Smart Contract: // SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; import "@openzeppelin/...
  • 13
0 votes
1 answer
16 views

Transaction on etherscan vanished

Anyway i saw my transaction of eth on etherscan, thought looking good. so put laptop away for 10 minutes and waited for it to clear into my Metamask. After just 10 a 20 minutes went back and saw that ...
  • 1
0 votes
0 answers
16 views

On Ethereum private chain, why my light node cannot connect to the bootnode?

I'm new to ethereum and geth client, and I met some trouble nowadays. I do need someone's help. I try to setup an ethereum private chain, which includes full nodes, light nodes, and bootnodes. The aim ...
  • 1
0 votes
0 answers
10 views

Keystore account management through geth console

A few years ago I used to access my ethereum accounts in ~/.ethereum/keystore though geth console as follows: eth.accounts[0] which would return the ethereum account address, personal.unlockAccount(...
  • 53
1 vote
0 answers
43 views

Point a Go-Ethereum contract instance at a different address

I am running a golang backend that will interact with tens of thousands of deployed contracts that are all the same, just with different addresses (uniswap pools). I am thinking that it would be more ...
0 votes
0 answers
3 views

netstats-min.js Error Whe Run

I need Help For Error This image when i run EthStats, I Run Openethereum(parity) Please Help, Thanks
1 vote
0 answers
18 views

Does Hyperledger Besu limit the amount of data in a transaction?

I need to send transactions to a private PoA Ethereum Blockchain. I know by geth source code it is limited to 128 KB: txMaxSize = 4 * txSlotSize // 128KB -> tx_pool.go file: https://github.com/...
  • 13
1 vote
0 answers
9 views

Fork of geth - activate mining ONLY when there's transaction(s) that've come from a certain wallet/address. How?

This may be a fork of geth, or any other node client, or a tweak in its functionality: I want to be able to activate mining process only when, and if, there have come transaction(s) from a certain ...
  • 33
1 vote
1 answer
13 views

Are all blocks/transactions available using geth "snap" sync method?

I want to run blockbook (https://github.com/trezor/blockbook) node which uses geth as an Ethereum client. Will there be all necessary information (blocks, tx details) to build blockbook db if I use \ ...
  • 11
0 votes
1 answer
10 views

Geth gas limit decreases over time in private PoA network

I have deployed a PoA network with geth, setting gaslimit to 0x1fffffffffffffff in genesis file. When starting mining and over the time, I have realized gaslimit in each new block decreases. I have ...
  • 13
2 votes
1 answer
90 views

Ethereum beacon chain node (Lighthouse) fails to connect to GoEthereum

Ethereum beacon chain node (e.g. Lighthouse) fails to connect to GoEthereum execution layer node with the error seen in GoEthereum logs: the method engine_exchangeTransitionConfigurationV1 does not ...
1 vote
1 answer
25 views

How to get ABI from the source code programmatically?

Is it possible to get an ABI from the source code without using solc compiler? Like I can get source code of verified contracts through etherscan API and I want to convert it into ABI. Are there any ...
  • 725
5 votes
1 answer
2k views

Post-merge network, but no beacon client seen. Please launch one to follow the chain!

Ethereum GOerli Network Sync stopped block number 7382822. And one warning come (Post-merge network, but no beacon client seen. Please launch one to follow the chain! ) how to start sync in goerli ...
1 vote
1 answer
15 views

creation of TokenCrowdsale errored: Internal JSON-RPC error. { "code": -32000, "message": "execution reverted" }

I have an erc20 token and I want to create a crowd sale contract for it on Binance smart chain the token is deployed successfully but when I try to transact crowdsale then am having the error. Please ...
0 votes
0 answers
14 views

There's no trusted peers even I connected with over 500 peers?

I am running Geth Ethereum node on Linux. This is the command I used to start the node, and the synchronization is finished. nohup geth --http --http.api personal,eth,net,web3,txpool \ --ws --ws....
1 vote
0 answers
13 views

Guidance in connecting multiple machines to a single blockchain

I'm seeking guidance with respect to the execution of a private blockchain. I have created a private blockchain using geth and deployed the contract using truffle. I am looking for a solution that ...
1 vote
1 answer
14 views

How to access smart contract state variables from the Storage Trie?

Using geth, I can access any block's state root hash. Is there any way we can get access to the storage root hash inside it and also retrieve state variables from the storage trie itself. I have tried ...
0 votes
0 answers
10 views

How to use NPM as command line in online Remix Editor to use Contracts from OpenZepplin

I am trying to make a simple ERC20 token and also for crowd sale so I have to import multiple files from OpenZapplin but most of the files aren't present.DEB Folder so how can I use Npm Command in ...
0 votes
0 answers
25 views

Geth Goerli syncing issue

ERROR[09-05|06:14:52.958] Failed to prepare header for sealing err="extra-data 65 byte signature suffix missing"
0 votes
0 answers
11 views

Could not see balances appearing on Geth console

I have test account in Goerli network and sent some ether from metamask to an account created on Geth console. After connecting to Geth client with below command. geth --goerli --http --http.api="...

1
2 3 4 5
123