People who code: we want your input. Take the Survey

Questions tagged [go-ethereum]

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

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

Need a smart contract to get rewards from ethereum mining?

Do I need a smart contract to get rewards credited to my account while mining ethereum?
0
votes
0answers
3 views

eth.getBalance returning 0 due to syncing problem in rinkeby

when I am running eth.syncing it is returning false and when I am running eth.getBlock("latest") it is returning number: 8290864, with some other data. Which is less than Block Height ...
0
votes
1answer
9 views

Go Ethereum (GETH) Node Error

I'm trying to get smarter on blockchain broadly so downloaded Bitcoin Core / Geth nodes recently and got them both working but admittedly I hardly know what I'm doing. I didn't realize that I needed ...
0
votes
0answers
3 views

Good document to setup geth & nodes to mine mainnet (not testnet)

I'm new to geth mining and haven't found a good document which I can use to setup multiple machines to mine as nodes. I have systems synced from mainnet but I would like them to be working as nodes/...
0
votes
0answers
14 views

Transaction contains data, but the ABI signature could not be found

Contract code: pragma solidity ^0.8.4; contract TestContract { uint public variable; address public owner; event VarSet(uint from, uint to); function set_variable(uint num) ...
0
votes
1answer
26 views

I read the description, but I don't understand it. Thank you for every day

ParserError: Expected type name function execfunct pragma solidity ^0.6.05; abstract contract AionClient is Aion, Context, Ownable{ using SafeMath for uint256; address private AionAddress; ...
0
votes
1answer
22 views

TypeError: Member “gas” not found or not visible after argument-dependent lookup in tuple(bool,bytes memory)

How do I fix this? abstract contract AionClient is Aion, Context, Ownable{ using SafeMath for uint256; using Address for address; address private AionAddress; constructor(address addraion) public{ ...
1
vote
1answer
10 views

eth.syncing is falling behind

I lost internet connection for about 5 minutes and my full node was disconnected. At first it was about 500 blocks behind and looked like it was catching up. Now every time I check: eth.syncing....
2
votes
0answers
15 views

Local full node is one block behind mainnet after sync is completed

I just created a local Binance Smart Chain full node on my PC with the following specs: OS: Linux running on Windows Subsystem for Linux Storage: 1TB SSD (Samsung 980 Pro) CPU: AMD Ryzen 7 5800x Ram: ...
0
votes
0answers
7 views

geth mainnet peers are not resolved

I have 2 machines one of which is mining and second one is syncing. Each have it's own accounts. I just started the geth with "geth --datadir /blah/blah" --mine --miner.threads 6. Is there ...
0
votes
0answers
13 views

Geth on two machines on same network

I'm new to geth mining. I have 2 machines one of which is mining and second one is syncing. Each have it's own accounts. I just started the geth with "geth --datadir /blah/blah" --mine --...
0
votes
0answers
4 views

admin.addPeer() not working on a geth node syncing mainnet

I am running two full geth (1.8.23-stable) nodes syncing with the mainnet. The first node was started early, and therefore has more peers. My intention is to copy over all the peers from the first ...
0
votes
0answers
13 views

Query regarding encryption mechanism in solidity

can someone guide me regrading solidiry smart contracts does remix Ide or solidity use some encryption mechamism for its contract data?
0
votes
0answers
10 views

how to get pending block's transactions logs?

how to get pending block's transactions logs i have try to use web3.eth.getBlock('pending') get the pending block i try to use web3.eth.getPastLogs ,but only get last block logs, how can i to do this? ...
1
vote
0answers
17 views

admin.peers shows peer info (local and public ip). Is this cause for concern?

I'm connecting to a private blockchain network over the internet using geth. In the console of geth if you run admin.peers it lists both: local_address(internal ip) remote_address(external ip) I have ...
1
vote
0answers
21 views

I'm running a private Ethereum network, how to properly share my enode address with my friends?

I have setup a private network and I'm looking for advice on a few things. According to the official guide I can use Tor onion addresses. My question is how do I share this address properly? I have ...
0
votes
0answers
12 views

go-ethereum: watching contract for events

I've been trying to get a go program going that monitors a smart contract for emitted events. I had found the amazingly written https://goethereumbook.org/event-read-erc20/ unfortunately it appears to ...
1
vote
0answers
13 views

Cannot confirm my ERC20 coin balance with geth.console

In geth console, I want to check the balance of my ERC20 coin (called 'DPI' at contract address below). I do not want to use etherscan, rather I want to be able to check it offline. I think how I ...
3
votes
1answer
52 views

How to bypass mempool

I always see a mark on etherscan called "Private Transaction - this tx bypassed the mempool." What is happening there and how does it work?
1
vote
0answers
16 views

Is there a way to filter pending txs?

I wrote a script to track unconfirmed transactions in the mempool, but my script is always triggered by txs, that are too long pending for like many hours or days because of not enough gas that was ...
1
vote
0answers
8 views

How long does it take to fast sync a geth node in 2021?

I am trying to fast sync a geth node with the mainnet. On a server with equipped a mechanical hard disk, an old-ish 24-core Xeon processor, and 96 GB RAM, it sync 4 block per minutes on average. I don'...
0
votes
2answers
22 views

Geth is not emitting pending transactons

I am connected to two nodes, mine and external. The external one emits pending transactions mine does not. I started geth full node (after downloading a snapshot of the network). After 24h using eth....
0
votes
1answer
34 views

ParserError: Expected '{' but got 'constant'

This is my error message ParserError: Expected '{' but got 'constant' --> amkcoin.sol:50:35: | 50 | function totalSupply() public constant returns (uint); | ^^^^^^^^ and this is code line.. } /** ...
0
votes
0answers
29 views

Geth console - eth.sendTransaction returns “unknown account” ERROR using Clef accounts

I'm approaching to Ethereum with Geth and Clef using the official docs: Geth: https://geth.ethereum.org/docs/getting-started Clef: https://geth.ethereum.org/docs/clef/tutorial I have a problem when ...
0
votes
0answers
12 views

(Geth Study) Doubt about throttleThreshold in /eth/downloader

this question relates to download part of gethv1.9.25. to reach checking of throttle, follow the path queue.reverseHeaders(...) > resultstore.AddFetch(...) > resultstore.getFetchResult(...) show ...
0
votes
0answers
6 views

Ethereum - Updating Configuration Properties

I found very little / or no documentation about the process to update a configuration property once blockchain starts running. How to update configuration property say block size, consensus algorithm ...
0
votes
1answer
18 views

How best to replay all events from genesis using web3

Using web3 I'm trying to replay all events that have ever happened in order. Reading the docs, a good way to do this seems to be: web3.eth.subscribe('logs', { fromBlock: 0}, function() {}) .on(&...
0
votes
0answers
8 views

Unable to find data saved into smart contract getting below error everything is fine which is mentioned into error e.g. gas, block number sync etc

i am getting this error into private blockchain : Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are ...
0
votes
1answer
28 views

Ethereum What is node?

I'm studying & developing Ethereum Platform There are approximately 5000 node servers in ethereum main net. Is it true that data is saved in one of node server(block) and share it with other node ...
1
vote
2answers
22 views

Ethereum Transaction Confirmations - how many are enough?

Is there a recommendation - or even some sort of unofficial "standard" - regarding how many Confirmations we should wait for before considering a Transaction successful/valid - and then ...
0
votes
1answer
12 views

How to get sender of pending transaction?

First I wanted to listen on a specific account address and found out I couldn't. My solution was to listen to all transactions using web3.subscribe("logs") but I wonder if I can get the ...
0
votes
1answer
5 views

New miner warnings and errors, dropping nodes and peers

Im new to mining. I had several older blades sitting around not doing anything so I thought why not have them doing something. Anyway these are all CPU based miners. I understand its not effecient, ...
1
vote
1answer
20 views

Gas in ethereum?

Will it be right to say ? Gas is a very small quantity of ether. TRUE OR FALSE? I read somewhere: Gas refers to the fee, or pricing value, required to successfully conduct a transaction or execute a ...
0
votes
0answers
7 views

What should be done first: extract snapshot or create genesis?

bsc documentation describes a method of accelerating creation of a full-node using a snapshot. However, it is not clear in which order these commands should be executed and if it makes any difference: ...
0
votes
0answers
8 views

What's the reason at block says 0?

I am trying to setup bsc node following the official documentation. Here is what I have so far: Downloaded snapshot and extracted contents to /srv/node Wrote genesis state locally: geth --datadir node ...
0
votes
0answers
7 views

How to subscribe to the txpool / mempool of an external node using go-ethereum client?

Currently im trying to learn go by rebuild my already existing nodejs application but im facing the issue to not find a resource regarding the usage/ to consume a txpool from a given websocket ...
0
votes
0answers
18 views

Ethereum balance is not showing in my Ethereum node

I have set my ethereum node in Amazon Ec2. I start syncing through this command sudo geth --datadir /home/ubuntu/data/ --cache=512 --allow-insecure-unlock --rpcapi "web3,eth,personal" --rpc ...
2
votes
1answer
12 views

Is it possible to change the network id in GETH once geth is initialized?

I want to change the network_id of my private ethereum network setup with geth. It seems like I have to change it in genesis.json file and also have that id when I start geth. But, to apply the ...
0
votes
1answer
14 views

Detecting a contract deployment, zero address?

Can anyone help ? I am trying to listen for a new contract deployed. I thought that contracts were sent to the zero address which means its a new contract deployment, although this is not working. ...
0
votes
0answers
6 views

Work with local copy of Ropsten without syncing

I have used Geth to successfuly download (and sync) with Ropsten network. Is it possible to use downloaded blockchain (reading blocks with Geth) without syncing with Ropsten? I would basically like to ...
0
votes
0answers
94 views

Geth bsc node install problem

I'm trying to install a bsc fullnode, i'm following the bsc tutorial (https://docs.binance.org/smart-chain/developer/fullnode.html). But i ran into a problem. At the last step when i launch the node ...
1
vote
1answer
12 views

How to see events in Remix

I deployed a sol file in the remix,where can i find the event? please help me... pragma solidity >=0.7.0 <0.8.0; contract con1{ uint public x; event e1 (uint); function f()public{ x=5; ...
0
votes
1answer
14 views

Conditional Transactions in Ethereum

Is it possible to send conditional transactions in ethereum? For, e.g., Alice wants to send five ethers to bob. Alice has initiated a transaction for this transfer, but these five ethers will be ...
0
votes
0answers
15 views

Listen for new ERC20 token deployments in golang?

Is it possible to listen for new contract deployments ? More specifically ERC20 tokens ? Then abstracting the decimals and ticker and name. I am trying to create a list of all new ERC20 deployments ...
0
votes
0answers
24 views

Remotely execute JS function on node

Let's say that I have made a function foo() in the js console on node A: function foo() {return 42;} I would now like to execute this from node B remotely. Is this possible? I have tried to use web3....
1
vote
0answers
14 views

How to fix gas-related errors in sending a transaction

I tried to make my first transaction but kept failing. I searched here and there but still could not find a solution. And came here to write a question. I am trying to send some from account[0] to ...
0
votes
0answers
10 views

How Can I Add A Specific Percentage Fee On My Etherium Token In Solidarity When Sold?

How Can I Add A Specific Fee On My Ethereum Token In Solidarity So It Charges People A 15% When They Sell Their Tokens So 10% Of The Tokens Sold Go And Deposite To My Wallet Address, And The 5% ...
1
vote
1answer
84 views

Can a Binance SmartChain / BSC full node be run on Windows?

If Geth is available on Windows, shouldn't that mean it's doable, or am I misunderstanding how it works? I was under the impression that Geth is essentially the node software. Is that not so?
1
vote
0answers
7 views

Using EthersJS how do I run “txpool_inspect” command?

As the title says, I'm attempting to execute "txpool_inspect" Json RPC command against my node but am having trouble finding any API hooks to handle this. Is it possible?
0
votes
0answers
8 views

Transaction receipt can be missing for mined transaction?

ETH Node: Geth I am subscribing to new blocks, check each block & add transactions related to my node to database. Before adding i check if transaction have receipt and the have gasPrice or not. ...

1
2 3 4 5
111