Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
8 views

About geth's method eth_call and simulating state changing transactions

I am running my own local Geth node and my main objective is to simulate some transactions and see how does the state of the blockchain change from the current one. For instance if I simulate a tx ...
0
votes
1answer
15 views

Is there a way to analyze the contract trancsaction trace result like Etherscan?

This question is a continuation of the question below..! How to decode when the input of tracsaction consists of multiple contracts? In the question above, node information is needed to trace the ...
0
votes
0answers
8 views

types.NewTx instead of types.NewTransaction

var data []byte tx := types.NewTransaction(nonce, toAddress, value, gasLimit, gasPrice, data) signedTx, err := types.SignTx(tx, types.HomesteadSigner{}, privateKey) NewTransaction is ...
0
votes
1answer
10 views

(Geth) run error: flag provided but not defined: -gasprice

I am following this tutorial and am able to successfully generate the genesis file and the initialize the bootnode as well but I am unable to start the mining process. Every time I run : geth --...
0
votes
0answers
106 views

Error “Snapshot extension registration failed” when connecting nodes

Description. The error occurred during the process of building an Ethernet private chain, and I found that the node could not connect. The error message in the log is as follows. INFO [07-24|09:06:36....
0
votes
1answer
8 views

Unable to sync Ropsten testnet with Geth 1.10.5

I upgrade geth to latest 1.10.5 stable, but my local ropsten node is higher than etherscan. This is the command. geth --cache=4096 --maxpeers=50 --datadir=/data/eth --ethash.dagdir=/data/eth/ethash --...
0
votes
0answers
32 views

How to get ethereum contract and account information (using geth and web3.py)

I want to get ethereum data, so I use geth and web3.py. also, I currently use geth light mode. I get the transaction data through the code below... from web3 import Web3 w3 = Web3(Web3.HTTPProvider('...
1
vote
1answer
18 views

Is there a importance of the connected peers?

I'm a pool dev, and I'm asking some questions about peers connected to node. What is the "best" number of connected peers ? I guess too less or too much connected is important ? Is there a &...
0
votes
0answers
13 views

Public IP and how to connect nodes from different devices on different Internet network?

Objection to duplicate problem: I'm running the same genesis block and same networkID on both machines. This is what I am using for the first one. geth --identity Block --rpc --rpcport 8080 --...
0
votes
0answers
8 views

I am getting error PATH not updated in, original length 1112>1021

I am using windows desktop. When I installed Ethereum I got below screenshot error(Path did not got updated). When I entered command geth version in power shell I am getting error. Below I've attached ...
0
votes
1answer
18 views

Can not import @openzeppelin/contracts/access/Ownable.sol & @openzeppelin/contracts/utils/introspection/ERC165Storage.sol

I want to run this code but I get an error. How do I get it to work? https://github.com/ERC725Alliance/ERC725/blob/master/implementations/contracts/ERC725/ERC725Y.sol
0
votes
0answers
27 views

eth.getBalance is always 0 on fully synced geth ropsten [duplicate]

All accounts on my geth return 0 balance. The blockchain is fully synced. Latest messages show that it syncing seconds not days. When calling eth.syncing it returns false for over 2 days now. So it's ...
0
votes
2answers
40 views

Withdraw Tokens from a contract

I'm looking for a way to withdraw tokens from a contract. Is that possible? I know how to withdraw basic tokens like eth and bnb from a smart contract but I want to withdraw tokens from a contract.
0
votes
1answer
22 views

Is my node's sync speed normal?

I'm running geth in a docker container. Params are --http --http.addr 0.0.0.0 --http.api --ws --ws.addr 0.0.0.0 --ws.api eth,net,web3 --graphql --metrics Node has been up an running for about 4 days....
0
votes
1answer
22 views

How could a replay-protected transaction gotten replayed in Ropsten (pre/post London hard fork)

We're running two versions of geth on Ropsten. One is pre-london (legacy) and the other one includes the london activation block (london). The versions we're running are: legacy: Geth/v1.10.2-stable-...
0
votes
0answers
12 views

Send different signed transactions in a batch?

I have signed transactions and want to make a batch request with all the different signed transactions. How can i achieve that?
0
votes
1answer
25 views

What Ethereum / Geth folders can I safely delete?

I have been in crypto for a few years and over time, changed computer several times, transferring entire C drive content every time. My new computer has a smaller C partition and I'm trying to free ...
0
votes
0answers
30 views

Geth is always 100 blocks behind and never starts syncing states

Geth seems to be always near reaching the highest block but never actually reaching the same number, so it never starts syncing states. knownStates is always 0. Using geth attach there is always a ...
0
votes
0answers
11 views

Is it possible to fork the Bsc chain using geth to use it for dry running

Is there a way to fork an EVM chain using geth ? something similar to the --fork option of ganache where you take the entire chain and basically hard fork it while adding newer accounts with infinite ...
0
votes
0answers
6 views

Is any account allowed to deploy a SC on a POA network?

I'm pretty new to ethereum but I have a geth POA network running, consisting of two nodes, one boot node and one public node. The thing is that the only way that I have to deploy a SC is using one of ...
0
votes
0answers
15 views

All Transactions from Genesis

I need all transactions from genesis block, I dont care about replaying account states. I try fast mode sync and I am able to get transactions under each block in recent blocks. But when I try to get ...
1
vote
0answers
20 views

Order of recreation and proposing of block

With regard to this post, I would like to know what happens if the proposing and recreation of a block happens at the same time. For instance, if we keep the default recommit interval of 3s and set ...
1
vote
1answer
8 views

lighthouse + localhost geth - why “sync can take longer when using remote eth1 nodes”?

I have geth alongside lighthouse on the same computer. I'm running lighthouse with --eth1-endpoints http://localhost:8545. However this appears in my ligthouse logs: sync can take longer when using ...
8
votes
2answers
388 views

What prevents miners from cooperating and causing intentional chain reorgs?

The top 5 ethereum mining pools currently have more than 60% of the network's hashrate. What prevents these pools from cooperating to cause planned reorgs? There could be many reasons to do it, like ...
1
vote
1answer
93 views

Geth ran fine, but suddenly it's stuck and don't know the reason why

I'm running geth rinkeby at my Macbook. My geth version is like this. Geth Version: 1.10.3-stable Architecture: amd64 Go Version: go1.16.3 Operating System: darwin It finished syncing and ran fine ...
0
votes
1answer
9 views

subscribe to new node (gEth) while syncing and extracting logs

Is it possible, to set up a new node using geth and subscripe to that node using web3js to save all transfers from the very beginning? Like could I scubribe to get "logs" events on a node ...
1
vote
1answer
23 views

(Geth) Get Detail Of Dropped Transaction

I am trying to make my own Ethereum Explorer, I am pretty much near now... Right now I am stuck with Dropped & Replaced Transactions. Here's TxHash=...
0
votes
0answers
10 views

gEth archive mode hosting AWS or Azure?

Can you guys recommend a setup for running an archive node on either AWS or Azure? Is there any service that fits the needs for doing so the best?
0
votes
0answers
10 views

how to get pending transactions from TXPool in golang?

what is the difference between txpool vs pending transactions returned by ethclient.TransactionByHash where there is a isPending flag? How do I get/subscribe to pending trasanctions from Txpool using ...
0
votes
0answers
10 views

geth Core question, why does pending transaction only returns for local accounts?

in pending Transaction (eth_pendingTransactions) why is it the node is checking for only those transactions which the sender/from came from the accounts a node is managing(created/keystore,etc). Im ...
1
vote
1answer
24 views

(web3) Get 'Token Transferred ' log just like etherscan

I am trying to get the token transferred log like in etherscan, I am just clue less how to do it.
0
votes
0answers
4 views

Are Ethereum known states comparable between users?

Just noticed a discrepancy between numbers reported for states available for different users of during the syncing process for the known states field. why is this?
1
vote
0answers
12 views

admin.addPeer() takes a very long time to add the peer

I am running a private network where nodes add and remove each other dynamically. I have a problem where, the first time a node performs admin.addPeer() to a neighbor the peering is instant (as ...
0
votes
1answer
31 views

How to get from address using ethClient in go ethereum?

How do I get from address using ethClient? just like http JSON RPC-API always contains the from address. I tried something like below for _, txHeader := range block.Transactions() { transaction, ...
1
vote
0answers
21 views

How to reduce transaction propagation time

I want to reduce the propagation time of my transactions to the minimum (ie. the time it takes for my transactions to reach miners). My transactions are broadcasted on my local Geth node (full node). ...
0
votes
1answer
19 views

gETH on AWS what is required to collect all Transfer events from block 0 to current after node sync

I need to save all Transfer events of the blockchain in order to later on build up a balance tracker for all wallets I wanna fetch. I was thinking about running gEth on AWS but I never did anything ...
0
votes
0answers
13 views

Encoded delegate calls fails

I have been using encodeFunctionCall() utils for encoding my function call. when i use the encoded data to execute delegateCall(), it gets reverted. My solidity call is like bool success, ) = ...
2
votes
1answer
28 views

getTransaction returns null for old transactions

Fully synced node returns null for old transactions when queried using getTransaction or getTransactionReceipt. Using getTransactionFromBlock(blockNumber, txIndex) however will return the transaction. ...
3
votes
1answer
172 views

Is there a way to sign message by the Smart Contract?

I have a public view function that performs some calculations on the given input and returns the result. Although smart contracts don't have a private key Is there any way to add a signature as proof ...
1
vote
2answers
20 views

Which folder is geth storing data? (Ubuntu)

I just installed go-ethereum (https://github.com/ethereum/go-ethereum), and I am running a node. I am using Ubuntu. I want to ask in which folder is the block data being stored? Where I can see how ...
0
votes
0answers
27 views

Getting nonce too high on RPC debug_traceTransaction call

i am trying to get the transaction trace (similar to the one found as Geth trace_2 on etherscan) and to do so i try to use the debug_traceTransaction but each time with any transaction hash i am ...
0
votes
0answers
55 views

Trying to sync geth node (state snapshot generation)

Is this behavior normal? Seems to be taking forever and the accounts/slots number is not even changing.
0
votes
0answers
29 views

Losing connection on Geth websocket subscription

I am trying to keep multiple WebSocket connections to my Geth node open at the same time (around 200 connections). My issue is that they keep closing with a timeout error. I can't seem to know if it's ...
2
votes
0answers
17 views

How to rebuild pruned data after prune-state?

Geth version 1.10.4 introduced a new feature prune-state It deletes all state from db except HEAD - 127 What happens if I try to retreive old data via jsonrpc after pruning? Can I rebuild the pruned ...
1
vote
0answers
10 views

How to get history transactions towards a batch of given smart contracts in ethereum mainnet and replay these transaction again in private chains?

I have a batch of ethereum mainnet smart contracts (about 4,000). Now I want to do some researches: Get all history transactions that are sent to these contracts in ethereum mainnet; Replay these ...
1
vote
0answers
15 views

what should golang abi.pack argument looks like compared to solidity function

The following code is a popular solidity ethereum function function: swapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) what should amountOutMin type look like ...
0
votes
1answer
15 views

Setup Quorum Blockchain

I am setting up a quorum blockchain on my computer. According to the official documentation, I have to first clone the git repo and give the following command: git clone https://github.com/Consensys/...
1
vote
0answers
7 views

startnode.cmd file not recognized

When I opened my folder mygethnode in VSC. There are only two folders named geth and keystore and 4 json files. .puppeth folder and startnode.cmd file is not there. How to edit the parameters without ...
0
votes
0answers
17 views

generate address for wallet and create sub account

In bitcoin node we first create a wallet then generate address for it. When you check balance you see sum balance all of them because all of them are in one wallet and you can withdrawal all balance ...
1
vote
0answers
8 views

Is it possible to determine an Ethereum enode ID if you know the nodes IP/Port?

I have the IP/Port of a public node that I would like my node to peer with, but I don't know the enode ID. Is it possible to connect using just the IP/Port or discover the enode ID using this ...

1
2 3 4 5
112