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

What is the importance of `message Hash` generated from signing using private key

when we are signing a message using our private key what's the use case of the message hash ? Take the example from the eth_accounts module from python. >>> msg = "I♥SF" >>>...
Saikat Karmakar's user avatar
0 votes
1 answer
13 views

How can I fetch the current dollar price of BNB in a Solidity smart contract?

How can I fetch the current dollar price of BNB in a Solidity smart contract? Are there any recommended APIs or secure, decentralized methodologies for this?Is there a way to fetch the dollar price ...
Nishant Patil's user avatar
1 vote
1 answer
30 views

Simpler way of removing bad peers in go-ethereum?

I daily have to remove 5-15 peers that's constantly delivering stale data. I have to manually remove them with admin.removepeer() by using their enode address. Unfortunately, the go-ethereum logs only ...
blockchainmassacre's user avatar
0 votes
2 answers
21 views

Object has no member 'call' when reading smart contract in geth console

I'm following the Storage contract example from the Geth site (https://geth.ethereum.org/docs/interacting-with-geth/javascript-console-contracts) I am unable to call a 'retrieve' function on the ...
Chris's user avatar
  • 101
0 votes
0 answers
9 views

Are there any Go-ethereum forks supporting segwit?

My goal is to create a new token with a different signature algorithm to secp256k1. I would like to use the Go-Ethereum codebase as a starting point. Segwit is a hard requirement for this idea to work ...
Freddie Woodruff's user avatar
0 votes
1 answer
36 views

Error (9322): No matching declaration found after argument-dependent lookup

Here is the file which i try to run test through foundry. //Imports import "forge-std/Test.sol"; import {Portal} from "../src/Portal.sol"; import {IERC20} from "@openzeppelin/...
Internet and Computer Probe's user avatar
0 votes
0 answers
10 views

Geth Light Node: RPC connection read error err=EOF

I'm trying to implement a Light Node on a RPi4B, but I keep getting the following error, which is logged nonstop: nov 16 21:21:09 Bumblebee geth[1066]: DEBUG[11-16|21:21:09.477] RPC connection read ...
42piratas's user avatar
  • 111
1 vote
0 answers
15 views

API to get MEV reward recipient from Beacon Chain

Is there any API which I can reliably use to get the MEV reward recipient and block reward for a particular block number as shown on the beacon chain page? I can use the flashbots relay API but this ...
Ramon912001's user avatar
0 votes
0 answers
25 views

geth mainnet peer connection fails

OS: Linux Geth Version: Version: 1.13.5-stable I set bootnodes and started geth, but the peer count did not increase. Adding it using admin.addPeer did not improve it. When I looked at the log, it was ...
ayka98i's user avatar
0 votes
1 answer
26 views

execution reverted despite not writing to the blockchain

I am attempting to read the value of a token on a DEX. When I run the code I get execution reverted despite not writing to the blockchain. Code is reproducible with your own Infura api key. Any ideas ...
pigfox's user avatar
  • 125
0 votes
0 answers
13 views

Geth debug_traceCall logs parsing

So I have a geth client with debug api enabled, I use it with debug_traceCall in order to trace a call. I want to parse generated event logs from the traceCall (without using custom js parser in the ...
user128176's user avatar
0 votes
0 answers
20 views

Ethereum network on TCP vs QUIC protocol (UDP-based) on data transferring

I'm new to the Geth p2p network (devp2p). Devp2p uses both TCP and UDP to run it's networking protocol. The TCP is for the data transferring between each node and the UDP is for nodes discovery. I ...
Nutchanon Chantrasup's user avatar
0 votes
0 answers
34 views

Geth transactions not broadcast and stuck in pending state

Setup three Geth private network nodes(Clique) via docker container. They are deployed on three different VMs. Among 3 nodes, there is a miner node to mine the block, a RPC node to accept RPC request, ...
abcuse1111's user avatar
0 votes
0 answers
6 views

How to discover enode addresses on local network (in private test network)

how i can broadcast a enode address to another physical machine on the same network, in geth take for example, this as my enode address: "enode://...
Muhammad Yasir's user avatar
1 vote
0 answers
11 views

Tool for finding from which block Geth is in archive mode?

e.g. I can run geth in archive mode after the 17.000.000 block. I know I can find a wallet address and run getStorageAt manually on multiple blocks to find if my node was archive or not. But is there ...
Ivan Aracki's user avatar
0 votes
1 answer
14 views

Verify signature result return 0x

The return signature result from signMessage method obtained is 0x. How do we handle 0x signer result from frontend? const signer = new ethers.providers.Web3Provider(provider).getSigner(); try { ...
Edwin Chen's user avatar
0 votes
0 answers
10 views

GETH node in snap syncmode transaction receipts are missing until block ~5265000

I'm running GETH in syncmode=snap with the latest image ethereum/client-go:latest. Parameters: --http --http.port=8545 --http.addr=0.0.0.0 --http.vhosts="" --http.api=eth,debug,net,txpool --...
Gregory Vortman's user avatar
0 votes
0 answers
15 views

Storage layout key-value pair generation for pre-deployment of smart contract

Could anybody please let me know how do we generate key-value pair for smart contract pre-deployment purpose. I knows about the storage slot and its value assignment but I would like to know how to ...
RISHANT RAJPOOT's user avatar
1 vote
1 answer
14 views

Geth Archiver node configuration

I am interested in running a Geth archiver node and I noticed in the offical documentation that in order to do that states: Archive nodes are created by configuring Geth's garbage collection so that ...
tthug's user avatar
  • 11
2 votes
0 answers
51 views

web3.exceptions.BadFunctionCallOutput: Could not transact with/call contract function

I deployed simple helloworld code and want to call contract function. It must return "Hello World!" My contract is pragma solidity >=0.5.16; contract HelloWorld { ...
IRE's user avatar
  • 21
1 vote
0 answers
14 views

How to check if a certain hard fork is enabled in your network?

We are running a private PoW (Proof of Work) network on geth I would like to know, how can i determine if a certain hard fork is enabled on my network ? For instance, how will i check if the London ...
Muhammad Yasir's user avatar
1 vote
1 answer
14 views

Is Geth safe to install?

I was wondering is Geth is safe to install, after I am unable to verify the PGP signatures of the developers. I import the PGP keys into my keyring on my PC, but when I proceed to check the signature ...
Murtoos22's user avatar
1 vote
0 answers
88 views

cannot use array as type ptr as argument

I am using Go-Ethereum and I have the following error: abi: cannot use array as type ptr as argument But it does not make any since I don't pass an array. The arguments to routerABI.Pack function ...
pigfox's user avatar
  • 125
0 votes
0 answers
12 views

How to get internal transactions when simulate transactions?

My node is built using flashbots' mev-geth, which provides the eth_callBundle RPC to simulate a bundle transaction (go-ethereum only provides the eth_call RPC, which simulates a single transaction), ...
user2873314's user avatar
0 votes
0 answers
9 views

What's difference between filter for hashes and filter for full transactions?

I'am trying to understand the main difference between a filter for hashes and a filter for full transactions. Can anyone explain me this please?
PandaKungFuu's user avatar
1 vote
1 answer
18 views

Does geth or parity in development chain mode support methods like hardhat_setSorageAt or is there a way to manipulate EOA?

I wan’t to create more sustainable test network for my develop project. Hardhat node gets slowed down with the time and even crashes. I am wondering is there a modified geth rpc client supporting some ...
Hristo Todorov's user avatar
2 votes
0 answers
21 views

Cannot send transaction to smart contract, 'unknown account' even with account added to wallet

I am trying to send a transaction that updates the state of a smart contract. I have locally deployed a ethereum network using Geth and three VM. Here is my JS code: import { Web3 } from 'web3'; ...
robeng's user avatar
  • 21
0 votes
0 answers
5 views

Pool Prices Not Updating in Forked Hardhat Mainnet

Why do pool prices remain static in my forked Hardhat mainnet environment during swaps? What steps can I take to troubleshoot and ensure that pool prices accurately reflect the expected changes in ...
Asim Hayat's user avatar
0 votes
1 answer
28 views

local initialization

I was working in this solidity code. here is the code sample from my project interface customeInterface { function token0() external view returns (address); function token1() external view ...
Biruk Damte's user avatar
0 votes
1 answer
31 views

can eth_call simulate approve and transfer?

I have a solidity contract that contains a logic to approve and transfer balance, swap and flashloan. But when i use eth_call to call my function that perform swap, it reverts. I tried by ...
Biruk Damte's user avatar
0 votes
1 answer
27 views

how can i decode this transactions and see what it contain?

I'm interested in decoding the information within this transaction, which can be found at the following link: https://etherscan.io/tx/0x1013929251687ff7f6a7e2e0c7e3caae6fd93a2342dd5ad9793ff33c5802269f ...
PandaKungFuu's user avatar
0 votes
0 answers
3 views

Requirement for running node on etherum

i'm planning to run a node to do some works for learning such as snipping token, decode transaction from mempool in real-time which low latency? I just wonder which configuration that i need to do ...
dang.pm.IT's user avatar
0 votes
0 answers
17 views

Which consensus algorithm PoW or POS is used for mining a block in latest ganache ethereum client?

Which consensus algorithm have been used in the latest version of ganache for ethereum blockchain simulation.
Narayan Khatri's user avatar
0 votes
0 answers
29 views

Generating Ethereum Address from Mnemonic Seed Phrase in Java

I hope you're doing well. I have a question related to Ethereum address generation in Java. I'm currently working on a project and I need to generate an Ethereum address using a mnemonic seed phrase. ...
Abdul Moiz's user avatar
0 votes
0 answers
23 views

Securing Access to User Balances in Ethereum Smart Contract

I'm working on a Mobile app where users sign up, and they are assigned public and private keys. However, these keys are never actually shared with the users but are stored in the database. I want to ...
Giovanni Cassanelli's user avatar
0 votes
1 answer
42 views

can eth_call() make this?

I have a contract and inside the contract there is a non-payable function that can call externally. this function do some analysis,and calls other payable function than can make real transaction using ...
Biruk Damte's user avatar
0 votes
1 answer
43 views

How to trace transactions without sending them to the network?

I have made several transactions and would like to test/trace them without waiting for the miner to generate a block. And without even sending them to the network without testing. How can this be do ...
SkyN's user avatar
  • 175
0 votes
0 answers
66 views

How to run a PoS private network with geth & lighthouse?

So far for testing contracts, transactions and other dApp experiments I had worked with pre-established testnets (Rinkeby, Goerli etc) now i am tasked with deploying a private PoS network based on ...
Muhammad Yasir's user avatar
0 votes
1 answer
49 views

How to make contract transactions with Web3.py

I am getting error while deploying smart contracts with web3.py. The error says "web3.exceptions.ContractLogicError: execution reverted: VM Exception while processing transaction: invalid opcode&...
Narayan Khatri's user avatar
0 votes
1 answer
99 views

No commission comes from buying and selling on the Goerli network

Deployed the contract on the Goerli testnet via Remix. Added liquidity with the openTrading function. I buy tokens from another wallet through Uniswap, the purchase is successful, but the commission ...
Eugene's user avatar
  • 1
0 votes
1 answer
38 views

Sign_transaction and send_raw_transaction error in Web3.py

I would like to sign_transaction and send raw transaction with custom transaction fields. But I could not do it. Any help will be appreciated. Thanks
Narayan Khatri's user avatar
0 votes
1 answer
20 views

depolying system contracts for new evm blockchain

i was trying to fork a dpos evm blockchain , how to deploy system contracts for dpos and slash and get the "code" data in genesis file as below ? "alloc": { "...
ft_lauderdale's user avatar
0 votes
0 answers
11 views

Good extensions for both Foundry & Hardhat

Hello i'am looking for good vscode extension for both foundry & hardhat. Thank you for your feedback !
PandaKungFuu's user avatar
1 vote
0 answers
18 views

Getting `Fatal: Option "nodekey": invalid character '"' at end of key file` when trying `geth --nodekey /path/file`

I generated a key-pair with geth account new --keystore and now I'm trying to attach it to a light node with geth --nodekey, but I'm getting the error Fatal: Option "nodekey": invalid ...
42piratas's user avatar
  • 111
0 votes
3 answers
126 views

Despite calculation I get contract creation code storage out of gas

My smart contract is deployed on https://sepolia.etherscan.io/tx/0x1b1742a3ff2ac160d5f245ab91828fcc56a803cb3826b6cbdb9f3cb2f293ba66 Once deployed I get contract creation code storage out of gas error ...
pigfox's user avatar
  • 125
0 votes
1 answer
13 views

how to chech the address that buys the highest amount on a contract

What is the process for identifying the address that has made the largest purchase amount within a specific contract?"
trodd Highzik's user avatar
1 vote
1 answer
34 views

Why Golang was chosen to implement ethereum protocol?

I know there are many implementations of the Ethereum protocol, i.e. the first implementation in Python, or other implementations using C++, C#, and Java. As go-ethereum has gained lots of attention ...
Ehsan Khodarahmi's user avatar
1 vote
0 answers
40 views

Best way to get validator address/fee recipient address for a block

Is there any other way to get the proposer fee recipient address other than using flashbots relay API? Relay API isn't thorough and for certain blocks, you can miss out on getting the proposer fee ...
Ramon912001's user avatar
0 votes
2 answers
38 views

Deploying contracts at same address

// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; /* Let's say Alice can see the code of Foo and Bar but not Mal. It is obvious to Alice that Foo.callBar() executes the code inside Bar.log(). ...
kumar's user avatar
  • 41
1 vote
1 answer
27 views

Full node is missing transactions

I am running a full node (geth + lighthouse) on mainet for a few months. In a random test i found that my the geth client did not heard of some transactions (i took random blocks from Etherscan, and ...
stopiky's user avatar
  • 11

1
2 3 4 5
127