Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
19 views

How to send erc20 token with web3 without smart contract abi?

I created a token in the Ropsten network. It wants abi.json when transferring with Web3. But the token I created did not give it. My token etherscan link https://ropsten.etherscan.io/address/...
0
votes
1answer
19 views

Go-Ethereum EstimateGas - Error: VM Exception while processing transaction: revert

Been struggling in finding a way to estimate gas for calling a function. Here's a sample solidity function: This is what my code looks like: sig := []byte("withdraw(address)") methodID := ...
0
votes
0answers
8 views

Read ABI directly from network api in GOLang

Using go-ethereum package how can we read the JSON file of the deployed contract and then get the ABI out of it and then instantiate? I don't want to compile smart-contracts into GO but want to use ...
1
vote
0answers
12 views

Why does ethereum chaindata sometimes sync while syncing?

I am doing a fresh geth 1.9.18-stable sync, which I believe is fast by default. I am keeping an eye on the size of the .ethereum/geth/chaindata/ directory and have noticed that it does not increase ...
0
votes
0answers
7 views

Unable to connect to Geth/web3 from outside AWS using public IP with Websocket

I tried RPC api to connect to Geth/web3 hosted in AWS EC2 using the public IP. But developers have disabled web3 in RPC(HTTP) Web3 api for non local connection. It means that you can only make a web3 ...
1
vote
0answers
4 views

Fatal: Error starting protocol stack: gap — Chain freezer table opened

I started to get following error: Fatal: Error starting protocol stack: gap (#3697270) in the chain between ancients and leveldb. What may be the cause of this error? I was able to fix it by syncing ...
0
votes
0answers
12 views

Geth node with RPC - accounts created automatically, always same addresses “0xffa4658ff14e486a3a57cc7163c153724c9d1904”

I am testing a private ethereum network using Geth 1.9.x. On all instances serving RPC (universally enabled CORS), a series of 3 accounts are created (always the same 3 addresses): ...
0
votes
0answers
7 views

blockchain sync failed and stuck

My machine was crashed and rebooted, but after rebooting, geth sync repeatedly failed at a block, I checked the block number, hash is right though, what should I do? INFO [08-08|09:54:23.184] ...
0
votes
0answers
10 views

Why is my full node stuck always out of sync?

I have a 16g ssd ubuntu, I run the command: geth --ropsten --syncmode=full --gcmode=archive Checking the "eth.syncing" in the console attached, I get always current block is ~100 blocks ...
0
votes
0answers
11 views

Using a full archival node like Parity or Geth, how to query which is the last transaction which changed the value of a particular storage address

I tried various third party services like Infura, and there support all told me that this was unsupported and that I would have to run my own Parity full archival node for this. But even if I would ...
0
votes
0answers
18 views

Listening to broadcasted transactions using geth --syncmode light

Since my attempts of using Web3.py to get pending txpool content rely on methods unsupported by Infura (and other) endpoints, I am trying to run a lightweight geth peer. I am using the following ...
0
votes
0answers
13 views

Unbounded loop solidity internals

Under the hood, what happens in an unbounded loop? let's say I'm trying to send tokens to an infinite amount of addresses and end up with an out of gas error. Will the function which executes the ...
2
votes
0answers
11 views

Connecting ethers.js to a light client

I'm trying to connect ethers.js to a geth light client. A connection seems to form, but with no indication that I'm able to receive the right data. Here's the geth command I'm using: geth --rpc --...
0
votes
0answers
4 views

--ethstats to send node details to multiple servers

I am using --ethstats to send the node details to a server and to show on UI. For this purpose I am using the Secret key, Ipaddress and Port t which the details need to be sent. However, now I have ...
1
vote
0answers
17 views

How to Backup a GETH synced full node?

I was able to sync a complete GETH fast node but the server crashed and the node did not work. So, now I am downloading again. But I have worries that the samething can happen again. My question is: ...
0
votes
0answers
10 views

Can't unlock account with geth attached to parity on classic chain

I run parity 2.7.2 on Ubuntu with --jsonrpc-apis=all on the classic chain: #> parity --chain classic --light --jsonrpc-apis=all 2020-08-05 15:20:15 Starting Parity-Ethereum/v2.7.2-stable-2662d19-...
0
votes
0answers
6 views

block syncing current is smaller than starting why?

I'm sync the chain after a power cycle, so current is behind highest for sure, but I also saw that current is falling behind starting block number, how is this possible? starting is the highest on ...
0
votes
0answers
10 views

Event listener works correctly from outside of the machine but not from inside the machine

I have created an event listener for my application. When I run the event listener from outside of the machine it listens correctly to all the events but when I run the same event listener (with ...
0
votes
1answer
37 views

What will happen to GETH node once Ethereum 2.0 releases?

I have a full GETH node running and looks like Ethereum 2.0 is about to release. My question is: Will I need to do tweak anything in my node once Ethereum 2.0 releases? Will my GETH full node be able ...
0
votes
0answers
18 views

is there a way to create a ens ethereum address to be readable one using cryptography? [duplicate]

I would like to generate address which are readable to people using cryptography and supporting ethereum transactions without problems, I don't want to use ens ethereum because I will have to pay for ...
0
votes
0answers
15 views

Geth current block number update latency

With a fully synced fast node, logs are printed every ~8s seconds or so: "Imported new chain segment" with how many blocks, and how long has elapsed between the last chain segment. How can ...
0
votes
0answers
4 views

How to run geth and miner.start automatically when ubuntu startup(private blockchains)

I know write this in etc/rc.local geth --datadir "./" --networkid 15 --identity testnode --port 30303 --rpc --rpcapi=db,eth,net,web3,personal --rpcport 8545 --rpccorsdomain "*" --...
1
vote
1answer
36 views

If we reinitialize ethereum blockchain (running using geth) will we loose all the data?

I am running private blockchain using geth and my miners has stopped mining the data. A few days back I have removed old files from .ethash folder ... I am just wondering if that could be the reason ...
0
votes
1answer
38 views

Contract not showing the name and symbol

I deployed a contract on ropsten but it was not showing the name and the symbol. I have the feeling that there is something wrong at the deployment and I think it has to do with the parameters. As you ...
0
votes
3answers
23 views

Can a contract address have both ERC20 and ERC721 transactions

Some addresses on Etherscan like this one show both type of transactions (ERC20 and ERC721) on Etherscan. So, does that mean that both standards can be implemented at the same time for a token?
0
votes
1answer
31 views

Saving migration to chain.insufficient funds for gas * price + value

It looks like the contract was deployed well on mainnet However, eventually this error occurs Saving migration to chain.insufficient funds for gas * price + value Does it mean that the migration was ...
0
votes
1answer
17 views

Why some contract addresses show 0 supply and 0 holders on Etherscan

I have a an old list from December 2019 which showed the holders, supply and transfers in last 24h from Etherscan like here . Howvever while I was revisiting the addresses on Etherscan, there were a ...
1
vote
1answer
30 views

geth mining not working without --allow-insecure-unlock (geth 1.9.16-stable-ea3b00ad)

I am running a private ethereum blockchain with POA geth --port 3000 --networkid 42 --datadir=./blkchain --maxpeers=5 --rpc --rpcport 8543 --rpcaddr 127.0.0.1 --rpccorsdomain "*" --rpcapi &...
0
votes
0answers
32 views

Best way to sync a node to use traceTransaction in go-ethereum

I'm syncing a go-ethereum node. Now I'm syncing my node in full mode, with gcmode=archive enabled. However after a full week-end, I have around 500GB of disk space eaten and 2y7m left. My questions: ...
1
vote
2answers
27 views

Is Ethereum fast sync feasible to get logs

I want to get the logs of an contract address by filtering the even with transfer Event. I cant use Infura for its restrictions and limits. So i want to sync my own ethereum node for myself. Since my ...
0
votes
1answer
17 views

fatal error when try to serve geth in ipc

I have initialized my own genesis block and started geth --datadir pom Then I want to use "personal" so I started geth --nodiscover --ipcpath pom/geth.ipc --networkid 31337 --rpc --rpcaddr ...
0
votes
0answers
23 views

How can I get a list of all rinkeby nodes? [duplicate]

I'm running a rinkeby node and also want to see other nodes' information. I saw there is a list on https://www.rinkeby.io/#stats for nodes. Is there any other list where I can also have a look at all ...
6
votes
0answers
33 views

Can we avoid the protocol overhead of JSON-RPC and directly connect to GETH through some interface?

I want to build a middleware that adds additional data to JSON RPC responses. This middleware would sit on the same hardware or machine as the GETH node. The traditional approach would be to simply ...
2
votes
1answer
38 views

Syncing geth 1.9.15 took too long on HDD raid-0

I've been running full node on a server with this config: Centos 7 11 Tb hdd raid-0 32 Gb ram and I'm using geth 1.9.15-stable-0f77f34b I'm trying to be archive node but syncing took over 1 months ...
0
votes
0answers
10 views

What is logIndex and logsBloom in ethereum transaction

The web3.eth.getTransactionReceipt() returns a logIndex field along with a logs array and a logsBloom field. I have read many articles but somehow still confused as to what is logIndex and logsBloom.
1
vote
0answers
55 views

Why is my geth node stuck on “Looking for peers”?

I created a private test network using Puppeth and two nodes using Geth: geth account new --datadir node1 geth account new --datadir node2 geth init mynetwork.json --datadir node1 geth init mynetwork....
1
vote
0answers
25 views

Issue with failing to detect peers via Bootnode on Local Network

I am attempting to connect various nodes to my private blockchain on my local network using a bootnode to discover peers. Connecting the peers on the local machine running the bootnode is possible, ...
1
vote
0answers
17 views

How to get event from geth ethereum node using web3.js

I have created a simple contract where I am trying to write a value to a state variable in solidity smart contract, and emit that written value. I am using Truffle v5.1.28 (core: 5.1.28) Solidity - 0....
0
votes
0answers
14 views

how to curl to etherium geth node on local network (not localhost)

I have geth running on local network (separate machine). curl'ing to http://localhost:8545 works just fine. How do I curl to that geth node from another machine on my private network? Curling to http:/...
0
votes
2answers
20 views

Couldn't understand the logic behind code for mulitdeed payout contract

While searching on the web I came across this page the user has created multiple examples of solidity smart contract On multiple payout deed smart contract I can't understand this line duePayouts = ...
0
votes
1answer
75 views

Invalid block XX: unknown ancestor while restoring the chain - private blockchain

I'm trying to restore blockchain using import a rlp file geth import backup.rlp It show an error Is there any way to exclude the bad blocks while exporting the chain data? Also, if the gcmode is ...
0
votes
0answers
17 views

Transaction receipt sometimes return null on full sync geth node

I have a full sync geth node, sometimes my node returns null receipt for the confirmed transactions. I have re-checked log for excluding re-org chain because previous data from block #10463010 same at ...
0
votes
0answers
15 views

SSD Speed for geth nodes

sorry this may be a dumb question but I need to be sure before I mess things up. I have a bare metal server with virtualization software. I made a VM and it's running my geth node. I wanted to make ...
0
votes
0answers
16 views

Can smart contract sate copy from one private blockchain to another?

I'm working with private blockchain(PoA), and we're looking for a disaster recovery plan for the chain. Currently, we have two instances 1) one is running API(node + web3) and interacts with the 2) ...
0
votes
0answers
34 views

Disabling nonce check for go-ethereum for a private test net when using web3js batch requests to send tx

I am using web3js batch.add and batch.execute to send tx for an ethereum private testnet that I have created. I send tx using batch.add and batch.execute (don't prefer to use promises since they ...
1
vote
1answer
26 views

Can we run GETH light client and full client at same server at the same time?

I have a dumb question. Can we run light client and full client at the same time in the same server? I want this because the server where I was running full node crashed. After recovery, GETH node is ...
1
vote
0answers
24 views

Could not Able to start my genesis block “Fatal: Account unlock with HTTP access is forbidden!”

I am getting some problem while i am trying to mine for my genesis block on my Geth command prompt "Fatal: Account unlock with HTTP access is forbidden!" could anyone please provide me help ...
1
vote
1answer
30 views

Attach to tessera node failing

Im installed quorum with tessera but when i need to attach to any node using command $ ./attach.sh 1 show error "Fatal: Unable to attach to remote geth: dial unix qdata/dd1/geth.ipc: connect: no ...
0
votes
0answers
20 views

{“jsonrpc”:“2.0”,“id”:83,“result”:“0x0”}

if my geth is syncing in fast mode and I try to query method eth_blockNumber, will it throw me an error, cause it is not, i tried curl in verbose mode and below is the result. * Trying 127.0.0.1... *...
0
votes
0answers
28 views

How can know which is library's bytecode?

When I compile solidity file that has more then two contracts, Solc gives me some binaries. That binaries include bytecode of library. How can I know which one is library's bytecode if I don't have ...

1
2 3 4 5
102