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

Blockchain with fixed number of blocks using geth

I want to create a private blockchain with geth. In my case, the smart contract should be deployed (for example in block 9) and every block after this block should be deleted after creation. I want to ...
0
votes
1answer
29 views

error type address is not implicitly convertible to expected type address payable

I get the following error type address is not implicitly convertible to expected type address payable on the withdraw function. pragma solidity ^0.8.1; contract sendMoneyExamples{ uint public ...
1
vote
1answer
38 views

How to input decimal parameter in web3.py?

I have a contract with this abi [ { "stateMutability": "nonpayable", "type": "constructor", "inputs": [ {"name": "...
0
votes
0answers
13 views

Google Cloud + Geth Node - Enabling HTTPS?

I have a Geth node running on a GCP instance. It is able to accept requests over HTTP - great! However, it looks like Geth does not currently support HTTPS. Seems I need to setup a reverse proxy to ...
1
vote
1answer
20 views

How to get all ERC721 tokens deployed on the smart contract

I have deployed a basic ERC721 token with some image metadata. I want to build a dashboard to view all the tokens and looking for an effective way of doing it. One approach I have tried is: Loop ...
0
votes
1answer
14 views

Not able to use --testnet flag on geth windows

I have a problem where if put geth --testnet removedb it says flag provided but not defined: -testnet Im on windows 10 x64. Thanks in advance!
1
vote
0answers
12 views

how to set ledger into geth without private key?

i have a problem with geth. is it possible to import a ledger to geth. i want to use ledger nano as cold storage. but i didn't see any option for this. only option that already exists is importing ...
1
vote
1answer
23 views

Signature signed by go code but it can't verify on solidity

I used golang to generate a signature, but this signature failed to verify on smart contract. this is my golang code: func main() { pkStr := "...
2
votes
0answers
32 views

how to estimate the gas cost of a contract function that will fail

I am trying to estimate the gas cost of a contract function that will fail. when i do that using standard web3.py's contract.function(args).estimateGas(txArgs) it ends up failing and raising an ...
2
votes
0answers
25 views

Smart contract function signature only 1 byte

I have noticed some contract calls only contain the function signature in the 1st byte of the input data. For example: ...
1
vote
0answers
23 views

Geth archival sync becomes slower over time

I'm syncing a geth archival node and the syncing is becoming progressively slower. Current sync status is block ~11.5M/12.5M and syncing 1 block every 2 seconds. Command I'm running is geth --syncmode ...
1
vote
0answers
38 views

Problem with deploying the precompiled contract bytecode in genesis.json file

I am trying to add this simple test contract dumb.sol to my genesis.json file. pragma solidity <0.8.6; contract Dumb { string public name; string public symbol; constructor() { ...
0
votes
0answers
14 views

How to execute transaction without unlocking account from geth console?

I have a node that has enabled the HTTP-RPC server and that makes unlock an account in that node is not allowed due to security. I already know how to execute a transaction in web3 (web3 python to be ...
1
vote
0answers
31 views

Section processing Failed Canonical bloc unknown

i am running a light node for bsc and after a while i started getting this error : ERROR[06-18|00:56:15.755] Section processing failed type=bloombits error="canonical block #...
1
vote
0answers
12 views

Looking for peers peercount=0 forever; what should I do?

geth --goerli --datadir=./ethdata --syncmode "fast" --cache 4096 --http --http.addr 192.168.1.36 --http.port 19000 --http.api eth,net,web3 console
0
votes
0answers
17 views

TypeError: No matching declaration found after argument-dependent lookup

How do I fix this? TypeError: No matching declaration found after argument-dependent lookup. require(instance.execfunct(address(this),2100,gaslimit,hex"00")); ^-----^ Candidate: function ...
0
votes
0answers
26 views

Geth Reverse Proxy “Invalid Host Specified”

I am getting 403 "invalid host specified" Running geth this way: docker run --rm -p 8547:8547 -p 30303:30303 --name=geth -dti -v /data/geth:/data ethereum-node --datadir=/data --http --http....
1
vote
1answer
20 views

Connecting to Geth Node using Web3 WebSocket Provider resets every 2 hours

I have a Node JS application which connects to a Geth Node using the Web3WsProvider which under the hood uses W3CWebSocket. The app starts and connects to the node and is set mostly to make read only ...
0
votes
0answers
32 views

ParserError: Expected ';' but got '{'"?

ParserError: Expected ';' but got '{' aion.ScheduleCall{value:callCost}( block.timestamp + 1 minutes, address(this), 0, 200000, 1e9, data, true); pragma solidity ^0.6.0; contract Aion2 { using ...
0
votes
1answer
19 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
10 views

eth.getBalance returning 0 due to syncing problem in rinkeby [duplicate]

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
31 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
5 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
22 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
30 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
41 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
12 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
76 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
124 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
16 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
9 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
15 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
22 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
26 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
24 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
26 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
17 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
177 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
42 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
1answer
54 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
39 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
44 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
66 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
14 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
7 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
25 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
12 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
28 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
21 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 ...