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

How do sites like etherscan and polygonscan get data from nodes?

Sites such as Etherscan and Polygonscan read and show the balance of native tokens of many addresses and the balance of internal contract tokens (ex ERC20). Do these sites get all address data from ...
  • 61
1 vote
0 answers
16 views

Can block scout connect to a full node and index the transactions in the DB or does it need to be connected to an archive node?

For my project, I want to query the database that will be created and filled by Blockscout (an open-source block explorer). I have set up a full Ethereum node using Geth and Teku that is currently ...
0 votes
0 answers
4 views

how to capture transaction components individually from struct in go-ethereum

I want to modify a liitle in "congress.go" file to caputre 'to' address in form of array, I tried code below but getting compile error for the below code log.Info("test output => &...
0 votes
0 answers
24 views

How do you airdrop ERC20 tokens to NFT holders from a smart contract?

How do you airdrop ERC20 tokens to certain holders of an NFT all from a smart contract, let's say out of the 10k holders I only want to airdrop to NFT's from 1 to 1k
  • 19
0 votes
0 answers
6 views

How do I get price data such as the "all time high" from a smart contract and update it and the coin hits new highs

Is there any way for a token to be aware of how much its trading for and record data such as the "all time high" somehow without using an oracle?
  • 19
0 votes
0 answers
14 views

how are custom token fees implemented on centralized exchanges?

how would the custom token tax/fees implemented on centralized exchanges? ­­­­­­ ­­­­­­ ­­­­­­ ­­­­­­ ­­­­­­ ­­­­­­ ­­­­­­ ­­­­­­ ­­­­­­ ­­­­­­ ­­­­­­ ­­­­­­ ­­­­­­ ­­­­­­ ­­­­­­ ­­­­­­ ­­­­­­ ­­­­­­ ­...
  • 19
0 votes
0 answers
23 views

solana and neon evm working

Neon is the first evm compatible chain for solana. I want to talk here about binance smart chain here which is evm compatible meaning has evm runtime built in the binance chain. so you can create an ...
  • 113
0 votes
0 answers
9 views

Dai has no network configuration for its current network id (5777)

When I run truffle migrate --reset I get this error: Error: Dai has no network configuration for its current network id (5777). const Dex = artifacts.require("Dex.sol"); const Dai = ...
  • 1
1 vote
0 answers
32 views

Nested tuples with go-ethereum abi package

Is it possible to use the go-ethereum accounts/abi package to encode nested tuples? Say I have a Solidity struct struct BlockHeader { bytes32 parentHash; } struct SignalProof { BlockHeader ...
0 votes
1 answer
14 views

Decode Ethereum Gas Price Golang

I needed to get gas data from a transaction, I did it with the code below. The received data has been converted to a string. Now I need to decode the received value. How can I do this? import ( &...
0 votes
0 answers
10 views

How to start a local geth node with code for unit testing

I'm working on some unit tests for web3.go code, and I'm wondering if it is possible to start a geth node via code (rather than using the command line). I know there are other ways that you can do ...
  • 1
0 votes
0 answers
6 views

How do i remove a testnet account in GETH?

Can someone help? I am trying to deploy a smart contract to alfajores testnet via GETH. Everything seems to work fine except in my first account i have lost my password. I have a second account "(...
0 votes
0 answers
18 views

Geth init for Ethereum mainnet node

To run a non-miner node of Ethereum mainnet with geth, do I have to geth init? Isn't geth init for setting up a private network? To my understanding, geth init is needed when I would like to set up a ...
0 votes
1 answer
19 views

Minting NFT...do I need to specify something to perform proof-of-stake instead of proof of work?

That's a simple question, do I need to specify something to perform proof-of-stake minting instead of proof-of-work? The question came to my mind looking at this Legacy field of alchemy (Transaction ...
  • 113
0 votes
0 answers
6 views

Get peers with public key without admin

I have evmos node (it's cosmos with evm) and I ahve json-rpc. I want to connect geth to this node, but I need node-key. On json-rpc I don't have "admin" module... so my question is... How ...
0 votes
1 answer
43 views

Replacement transaction underpriced

I am building a Django service with Celery that sends multiple transactions to a contract and I am finding that the error {'code': -32000, 'message': 'replacement transaction underpriced'} from geth ...
  • 11
0 votes
1 answer
77 views

How to bridge eth from Arbitrum Rinkeby Layer2 to Ethereum Mainnet?

Does anyone know how to move eth from an Arbitrum Rinkeby Layer2 Network back to Ethereum Mainnet? I looked into Arbitrum Bridge but it doesn't support Arbitrum Rinkeby Network. Anyone know how I can ...
0 votes
1 answer
30 views

What is `recommit` for miner when PoW was working?

I see a config named recommit in go-ethereum source code, the miner module, what's it for? When some node is mining, maybe 10s-15s a new block may be sealed, the default recommit internal is 3s, it ...
  • 103
0 votes
1 answer
40 views

What's a cost-effective way to perform an Airdrop of erc-20 tokens

I want to reward addresses who bought into an ERC-20 token during a certain period. This would mean having a smart contract record each of the thousands of addresses, but smart contracts can't store a ...
  • 19
0 votes
0 answers
33 views

Why does my geth node never start syncing?

I'm running a geth node using Docker. I am also running a service that enables authenticated access to port 8545. This is a part of my docker-compose file that is relevant to the geth node: version: &...
0 votes
0 answers
16 views

Is there a walletnotify in Ethereum like bitcoin does and how to perform batch transaction using web3 python?

I'm working on project for a crypto exchange I have geth on a server and I'm using python as a programing language to communicate with geth using web3 library What i want to do is: 1/In bitcoin there'...
0 votes
0 answers
8 views

Private POA network not propagating submitted transaction

Have setup a 4 node POA (clique) private network using docker (ethereum/client-go:alltools-v1.10.25) with 4 nodes A, B, C, and D with their own datadir respectively. Node A is the sealer. All the ...
  • 101
2 votes
1 answer
73 views

Geth has connected to 3+ peers but won't download blocks

I'm trying to run a geth node on my machine. Yesterday I had troubles with finding peers. Today for some reason I'm connecting to many more peers but none of them seem to be willing to serve me any ...
1 vote
1 answer
9 views

How does the EVM read values in the Stack?

For opcodes like dup2, how does the EVM read the stack value that is not at the top of the stack for this kind of operation?
0 votes
0 answers
36 views

Tracking all ERC20 token transfers without using the event logs

I'm currently using the geth implementation. The problem is currently I am tracking erc20 token transfers using purely the erc20 contract event logs and filtering for Transfer event, then saving that ...
  • 1
1 vote
0 answers
48 views

How to get all transactions and also a notification on new transactions using web3 python?

I'm trying to work on small project related to small crypto exchange I'm running geth on a server and using python as a programing language to communicate with geth using web3 library What i want to ...
0 votes
0 answers
9 views

How to calculate exact gas used by transaction from tracer output

A real transaction from explorer: etherscan And this is tracer output: { "type": "CALL", "from": "0x3eadde4a48d0aebda37eed7076e736edac9a8b40", "to&...
0 votes
1 answer
17 views

Order of block transactions after the Merge

I am trying to understand how do transactions are actually ordered within a block. I have found something strange specifically which confuses me: Txid 1: ...
  • 3
1 vote
1 answer
23 views

Solidity returns struct. How to decode using Python

I have a contract in Solidity with a function that returns a (nested) struct. Using Python on the client side I can call the function using my geth node and it returns output as a hex string. How do I ...
  • 11
1 vote
0 answers
25 views

Why does my Geth full node stop working when it is out of sync?

I am using geth (with Lighthouse as consensus client) to work on the Göerli testnet Whenever i am trying to use the localhost RPC (127.0.0.1) or the IPC in my dApp, if my node is a few blocks behind ( ...
0 votes
0 answers
22 views

What Tries are contained in a Geth Full Node vs Archive Node?

My current understanding is that each block contains a receiptsRoot, transactionsRoot, and stateRoot. These hashes alone are not able to generate the world state. A full node is theoretically able to ...
  • 15
0 votes
0 answers
14 views

What is the strategy adopted by sidechains like Polygon to stay in sync with geth?

Polygon is fundamentally a fork of geth, with the consensus layer swapped out for Bor. How does Polygon, and similar sidechains for that matter, manage to stay on top of the latest changes made in ...
0 votes
0 answers
30 views

How long will geth take to completely sync?

web3.eth.syncing { currentBlock: 7764603, healedBytecodeBytes: 0, healedBytecodes: 0, healedTrienodeBytes: 0, healedTrienodes: 0, healingBytecode: 0, healingTrienodes: 0, highestBlock: 7764773, ...
  • 1
0 votes
0 answers
33 views

New GETH server only processing 6-10 requests per second

The server is fully synced, running behind Nginx proxy_pass, and will execute anything you pass it. However, I wrote a python script to test responsiveness that has an uninhibited loop hat checks a ...
1 vote
1 answer
15 views

Is it possible to determine how many logs a block contains from the newHeader logsBloom?

given this block header example: { parentHash: '0x3fb321ef847c655e0a3bac64e6bac1a2d3d479c602dab0523e48dc94533e80c8', sha3Uncles: '0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347'...
  • 11
0 votes
0 answers
16 views

Running geth from disk snapshot with different nodekey

I've managed to run geth from the disk snapshots successfully. What bothers me is the p2p layer. Is it enough to remove geth/nodekey file from the take snapshot of whole geth/ dir. That way, the new ...
0 votes
1 answer
121 views

Uniswap V3: quoteExactInputSingle throws an unexpected error for USDC-CVX but works fine for USDC-WETH

I am using quoteExactInputSingle to get the exchange amount output for different tokens, the implementation works fine for USDC-WETH pair, but not for USDC and CVX pair. When I am trying to get the ...
  • 103
1 vote
1 answer
53 views

How do I return a string in a pure Yul contract?

I am writing a contract in pure Yul and I want to return a string from a function. Imagine the ABI as: function getString() view returns (string memory); But in Yul, how can I do this?
0 votes
0 answers
45 views

Sync geth from a trusted execution-layer peer instead of beacon node

I have an existing hierarchical setup of my geth nodes, where the mission-critical Private node runs in a hardened environment only being able to talk to the Border node, which in turn talks to the ...
  • 131
0 votes
0 answers
52 views

How to Fork Public Mainnet Ethereum Binance Smart Chain or Polygon

I want to make my own blockchain but not a private blockchain but a public blockchain, is there a complete documentation or channel from youtube how to make genesis, bootnode settings, change chainId, ...
0 votes
0 answers
10 views

How to add/remove 2nd and 3rd account as a new Sealer on SAME NODE in Geth Proof of Authority?

i have tried to adding 2nd account as new signer on same node by clique.propose("0x1234243214312", true) signer got added, i get the list of signers as clique.getSigners() ["...
2 votes
0 answers
104 views

How to connect Hardhat to my own private geth chain?

I can connect truffle to my own geth chain, with this setting $ vi truffle-config.js networks: { development: { host: "mydomain.com", port: 9000, network_id: "*&...
1 vote
0 answers
156 views

HardhatError: HH110: Invalid JSON-RPC response received: missing token when deploying to Görli (Gorli/Goerli) testnet

Summary When I run yarn hardhat run scripts/deploy.js --network goerli, the following error is displayed in my terminal: HardhatError: HH110: Invalid JSON-RPC response received: missing token at ...
0 votes
1 answer
342 views

Geth does not sync - Proof of Stake

I am trying to run full node on Ethereum mainnet; however, I believe geth doesn't sync. I started the GETH client with geth --ws --http --http.api eth,net,engine,admin,txpool --authrpc.jwtsecret jwt....
  • 1,225
1 vote
1 answer
332 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,225
0 votes
0 answers
31 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 ...
  • 407
0 votes
1 answer
28 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
35 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?
1 vote
1 answer
44 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 ...
  • 111
1 vote
0 answers
22 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 ...