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
28 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
74 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
16 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
7 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
9 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
8 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
47 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
17 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
1 answer
78 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 ...
  • 11
0 votes
0 answers
14 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
17 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
106 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
181 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
172 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
21 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
62 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
30 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/...
  • 23
0 votes
1 answer
21 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
26 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
12 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
46 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
24 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/...
  • 23
1 vote
0 answers
11 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
34 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
18 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 ...
  • 23
2 votes
1 answer
316 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
100 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 ...
  • 825
6 votes
1 answer
4k 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
24 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
21 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
14 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
21 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
12 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
44 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
14 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="...
0 votes
0 answers
5 views

How to know the current hardware used by active miners?

I'm trying to estimate the underlying computing power of the Ethereum network. Is there any way to know the subjacent hardware (hence, computing power) used by active miners, and not just the hashing ...
  • 11
1 vote
0 answers
12 views

Parallel/ Concurrent Approval

I am trying to develop a document verification app that needs multiple levels of approval... How do I implement a parallel/ concurrent approval mechanism in Blockchain? I need it like the nodes have ...
1 vote
0 answers
10 views

Reject A transaction - geth [closed]

I am developing a certificate verification app, and it has various levels of approval. I want to enable a node to reject a transaction if it does not approve of the certificate. How do I do that? I am ...
0 votes
2 answers
18 views

how to import metamask pop-up in my solidity contract?

I am learning solidity and developing a contract. The contract will have the external blockchain wallet address of users (mapped with their username) and this wallet will store NFTs uploaded on my ...
0 votes
0 answers
11 views

Transaction with unlocked account not broadcasted in mempool when gas is specified

I have created a private Ethereum network with 2 node using geth version 1.10.23. Both nodes are miners and synced. I have noticed the following behaviour which I cannot explain: If I attach to the ...
  • 3
1 vote
1 answer
14 views

How to fork form Geth light client to Ganache CLI?

I am currently forking the Ethereum mainnet into Ganache CLI using Infura (command: ganache --fork https://mainnet.infura.io/v3/my_project_id) However, I want to use my own Geth light client with ...
0 votes
0 answers
15 views

Invalid Sender Faucet

i have a problem with sender address, please help me. const EthereumTx = require('ethereumjs-tx').Transaction const { generateErrorResponse } = require('../helpers/generate-response') const { ...
1 vote
1 answer
32 views

in UniswapV2Pair contract I don't understand Maths behind price0Cummulative and price1Cummulative?

I know TWAP formula = priceDifference / timeElapsed; but still not able to get how uniswapv2 is doing that. https://github.com/Uniswap/v2-core/blob/master/contracts/UniswapV2Pair.sol#L79
  • 496
0 votes
0 answers
16 views

Safe way of exposing ports to GETH?

I am in the process of deploying a local eth node using GETH. I am using docker compose to orchestrate the process. I was hoping to get an answer of whether I am exposing my ports safely. I'm ...
0 votes
1 answer
16 views

Is it possible to connect 2 geth node using 2 VPS using Linux (Ubuntu)?

I've running my geth node in vps server using ubuntu, first node is mining now. Now I have a new VPS server which is the second vps. How can I connect the first node to the other VPS server? Or I just ...
1 vote
0 answers
13 views

How to use The Graph (GRT) with Quorum to index events and serve them via GraphQL?

I saw a few videos of using a graph node to index blockchain events, and serve them via graphql, which seemed very useful. The common pattern in these videos that I observed: They are using Infura/...
  • 233
0 votes
1 answer
35 views

`msg.sender` instead of `tx.origin`

I am new to solidity but I have read at many times that tx.origin should be avoided & msg.sender should be used . There is a given demo on this in solidity page. It says like :- Never use tx....
  • 21
0 votes
1 answer
38 views

Call a solidity function which accepts a struct type using Web3J

We are trying to use web3j for encoding the parameters for calling the solidity functions which are deployed in the private ethereum network. Call is done using JSON-RPC. We are able to encode the ...
  • 105
1 vote
0 answers
21 views

Failed to generate mapped ethash cache - Operation not supported

I'm setting up my ethereum node to eventually be a validator. I've been working to get the blockchain synced and things are running right now, but I see the error: "Failed to generated mapped ...