Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
23 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
25 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
15 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
13 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
20 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
19 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
19 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
8 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
1answer
280 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
28 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
19 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
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
18 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
335 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
8 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
9 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
vote
1answer
46 views

How to check the latest possible state number of Geth

Good day for everyone. We are using geth with fast synch for own node on AWS t2.large with ssd volume. And it synching continuously, having 100 blocks behind current and states growing. I know this is ...
0
votes
0answers
11 views

Migrating from Geth 1.8 to Geth 1.10

We are running chains in PoA using Geth 1.8 - with just one sealer (this is our staging chain). We wanted to upgrade our chain to Geth 1.10 and decided to try the following: First, we generated a new ...
0
votes
0answers
37 views

Erigon (former Turbo-Geth) IPC endpoint location

I used to run a local Geth node and connect to it using web3.py but I've recently discovered and switched to Erigon (former Turbo-Geth). I cannot seem to find the IPC endpoint of the Erigon client ...
1
vote
0answers
64 views

geth: does --gcmode=archive require --syncmode=full?

I can't seem to find a straight answer to this question since snap is relatively new. I'm currently running geth 1.10.3 with --syncmode snap and --gcmode archive, but i'm beginning to think that ...
0
votes
1answer
100 views

How to access ethereum/client-go shell outside docker container

I have just started learning Blockchain and following a YouTube tutorial . In that tutorial he installed ethereum by cloning the repo , but I have installed the ethereum/go-client using docker as per ...
2
votes
0answers
30 views

How to import accounts with mnemonic in web3 console

geth attach http://localhost:8545 How to import accounts with mnemonic in this Geth console... like web3.personal.importRawKey("XXXX")
0
votes
0answers
30 views

Is this the correct way to deploy a mock, for a Token farm?

I'm wanting to create a token/farm and yield, but confused about a few things and I can't find an answer anywhere in the documentation. Firstly I have my original token which is ERC20, "moore&...
0
votes
1answer
28 views

A tool that does abi.encodePacked to fill data field in eth_call?

I'm trying to call a contract's deposit method using geth's eth_call. This function takes in value data in bytes: { "from": "0xd9c9cd5f6779558b6e0ed4e6acf6b1947e7fa1f3", "...
1
vote
1answer
55 views

can't find contracts on the BSC via fully synchronized local node

I am trying to find a deployed contract via my fully synchronized local node, but I can't find it. it turns out that I can't find any contract in fact. I tried running eth.getcode("...
0
votes
0answers
9 views

Geth syncing, how to keep on par with the network in syncronized blocks

I am trying to get data from the last block via my own local node. I do this by calling the RPC API on my node. the issue I have is that the node is not fully synchronized and is never fully ...
0
votes
0answers
25 views

Returned values aren't valid, did it run Out of Gas?

I am having a mapping like struct Invoice { uint256 unitPrice; uint256 totalCost; uint256 discount; uint256 CostAfterDiscount; bool isConfirmedByBuyer; } mapping(bytes32 => ...
0
votes
1answer
19 views

when are ethereum fees the lowest? Do they ever drop at a high rate?

"Can the prcies ever really drop ?Not a dollar but actually in terma of more then just a dollar or two ? a noticable rate? I know the less traffic the less gas but isthere any other ways to wrok-...
0
votes
0answers
13 views

Can I use a subnet mask with ws.origins?

I am trying to run my own geth node, as I am interested in monitoring the txpool's pending and queued transactions. I plan to mostly use a websocket connection from the same server, but it's possible ...
1
vote
1answer
64 views

How do you monitor Geth with Prometheus or InfluxDB?

I've read the v1.9.0 and v1.10.0 blog posts: https://blog.ethereum.org/2019/07/10/geth-v1-9-0/ https://blog.ethereum.org/2021/03/03/geth-v1-10-0/ I didn't read that any of the monitoring features ...
0
votes
0answers
15 views

easier way to debug a NPM truffle project?

I'm using open zepplin to try to code these forks and contracts and i cant seem to get NPM to configure correctly. I have tried all of these types of things. 1. Uninstall and global reinstall NPM ...
1
vote
0answers
12 views

Need to create WS Infura connection with JWT

Im developing a web app in which I connect the client with infura using ws and the project id, but I also need to use JWT in order to add an extra layer of security. There are explanations in infura ...
2
votes
0answers
80 views

Running Geth full node + archiving on tiered storage possible?

I'm trying to run a geth full node with archiving for development\learning and custom analytics. I have a physical Windows server running HyperV where I carved out the following VM specs: 24 vCPUs ...
0
votes
0answers
12 views

computer configuration for connecting eth 50 or more nodes

I'd like to rent a server to run eth client ,but I am not sure what the computer configuration should be?In my local pc ,I can only connect less than 10 nodes and failed in sync.If I want to connect ...
1
vote
0answers
32 views

Fragmented UTC file

I recovered my deleted UTC keystore file from 2018 using Recovery Software. The File is fragmented. It looks like this: Is there any way i can defragmentate the file?
2
votes
1answer
39 views

Why eth nodes found in ethernodes drop so much?

I have just visited ethernodes (a website that records eth nodes)and found the nodes it found has drop to 3990 while this number is 10K about 2months ago.What happen?Is it true that Ethereum nodes are ...
0
votes
1answer
48 views

Delay between IPC transaction call and submitting to mempool

I encountered a problem, where a web3j transaction was successfully submitted via IPC call and yet, it was not submitted to mempool for another 40 minutes. Etherscan did not show the TX as pending and ...
0
votes
0answers
17 views

Geth POA network: How to create and approve a fake transaction using 100% authority on sealer nodes?

Assume a 2-node local POA network. Having full authority on both nodes, is it possible to execute a 51% attack by approving a fake transaction without the sender's private key? For example, let's say ...
0
votes
0answers
40 views

Re-create raw transaction hash from transaction object

Is there a way to re-create the signed transaction hash from tx object. I found the How to construct a raw Ethereum transaction from transaction data answer helpful, but when I try to re-create the ...
0
votes
0answers
8 views

Python API Get historical transactional dollar value

I am able to see the UI visual tool such as https://etherscan.io/tx/0xa4957d2f3527fd10ca106211fdc13125bc92a659c2957247057fcac31beb133e for fetching the dollar value at the time of exchange rate. ...
1
vote
0answers
88 views

Unable to run Geth in dev mode

I'm having trouble running Geth in developer mode. I'm following the instructions from https://geth.ethereum.org/docs/getting-started/dev-mode however this returns an error that the chaindata ...
1
vote
0answers
32 views

IPFS hash link keep loading without not responding

I'm trying to add many JSON files in IPFS using the following API from this liberary py-ipfs-http-client, after running locally ipfs daemon: client.add('item.json') And here is the output of the item....
0
votes
0answers
12 views

RPC returns 0x0 after sync

binance smart chain v1.0.7 When new node complete syncing, RPC returns 0x0 values few hours.Can I fix that? Please help me
0
votes
0answers
32 views

Getting continuous warning in logs of my geth instance

Constantly getting logs like this in my geth instance WARN [05-08|14:06:32.143] Served eth_signTransaction conn=195.123.216.5:60142 reqid=1 t="83.324µs" err="tx fee (...
1
vote
0answers
173 views

Running BSC node in light mode?

Is it possible to run BSC node geth -—syncmode light mode? This is what i get following steps https://github.com/binance-chain/bsc only using -—syncmode light t=2021-05-08T11:56:12+0300 lvl=info msg=&...
0
votes
1answer
46 views

Binance Smart chain - private network implementation - guideline required

I am trying to understand the way Binance proof of stake authority(PoSA) works by implementing a private local blockchain. Therefore, I tried their official documentation but it seems like they simply ...
0
votes
1answer
69 views

Where can I find the source code for ETH 2.0?

Where can I find the source code for ethereum 2.0 and what programming language is it written in. Also, will this source code be rewritten into another language? And can I also run it and test it?
0
votes
0answers
12 views

Geth error “Served eth_getBalance”

I had nice running latest geth (1.10.3) and I did a clean exit ctrl+C (it did exited quite fast which is unusual), then started again and geth runs but not syncing and constantly gives warning Served ...
0
votes
0answers
19 views

Maintain two different token balances in a contract

How can we maintain the balances of two different bep-20 tokens in a single smart contract called Handler lets suppose? I am trying to write a function that transfers the second type and the first ...