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

web3js getPastLogs function returns error: query returned more than 10000 results

I have a local ethereum node and I am trying to filter an event for a contract address between a range of blocks. However it throws the following error: node:15689) UnhandledPromiseRejectionWarning: ...
0
votes
0answers
10 views

Migrate from parity to geth

How do I migrate full node from PARITY to GETH ? So the easy part to tun geth I know, but How do i move all the keys from parity to geth? I've tried to copy the keystore folder from parity to geth, ...
1
vote
0answers
18 views

Txpool not receiving any new pending transactions

This seems to happen randomly during an influx of new transactions. I am running a node with high txpool limits. --txpool.globalslots 1000000 --txpool.accountslots 128 --txpool.accountqueue 512 --...
0
votes
0answers
22 views

Error while calling a erc721 contract funciton using go-language

I am trying to call a function which is "mintUniqueTokenTo(address,uint256,string)" in a ERC721 token using go language , but for some reason it is failing. I think one reason could be that ...
1
vote
1answer
16 views

Infura getFilterLogs api returns empty array

I am trying to filter transfer events using node.js for a contract address between a range of blocks. I am trying to filter the latest 7 transactions which can be shown in etherscan here. My code is ...
0
votes
0answers
11 views

Blockchain interoperability

i hope that you are doing well! I wanna build an Blockchain interoperability approach based on side chain and i don't know how to start, so if someone can help me please don't hesitate to text me i ...
0
votes
0answers
16 views

How to create a multisg account on Geth server?

As you know, multisig wallets are more secure approach in financial cryptocurrency businesses. In my researches, I found out how can I create a multisig wallet in Bitcoin blockchain using this link. ...
1
vote
1answer
24 views

Sign Function of web3.js for Authenticating users via MetaMask

I am trying to follow the example found at this site in order to authenticate users using the MetaMask functionality. Furthermore, the web3.js documentation at the following site, specifies this sign ...
0
votes
1answer
24 views

err=“authentication needed: password or unlock” in geth [closed]

Is this possible that this error "authentication needed: password or unlock" can stop the whole chain because my chain keeps crashing.
0
votes
0answers
9 views

Transactions from connected peer on private geth network seldom get mined

I have two clients running on a private network, one mining and one not mining. When I send transactions from the mining node, they get mined right away. But when I send transactions from the non-...
0
votes
0answers
32 views

Fast sync ain't fast enough

I'm running geth with --syncmode=fast --cache=4096 --maxpeers=50 My laptop runs like crazy, but it's never able to reach the top of the chain (blocks are at the moment been created ~ once every 14 ...
1
vote
1answer
22 views

How to install solc of a specific version?

I want to install solc 0.4.24 but the commands given below installs the new version. sudo add-apt-repository ppa:ethereum/ethereum sudo apt-get update sudo apt-get install solc Or sudo snap install ...
-1
votes
0answers
11 views

Failing in my first blockchain [closed]

I am learning blockchain, but it has been impossible to pass from this error: Fatal:account unlock with HTTP access is forbidden. I am using Ubuntu in a virtual machine. Please help me
1
vote
1answer
8 views

Security of Exclusively using MetaMask's Account as a Login Process

I am currently developing a Dapp in vue.js/node.js which will use MetaMask to interact with the Ethereum Network. I have the following code implemented in a JavaScript module. import web3 from 'web3';...
0
votes
0answers
18 views

How to backup and restore a Geth server in full mode?

I had the experience of losing a Geth server due to some unknown software issues and whatever I could do for that time was moving keystore files to a new server. But it was a Geth server in fast mode. ...
1
vote
0answers
14 views

How does chainlink solve the oracle problem? [closed]

I've heard a lot about Chainlink recently -- how Synthetix, Aave and other top Defipulse projects are using them. How exactly does Chainlink solve the oracle problem from a technical perspective?
0
votes
0answers
14 views

Geth Fatal: Error starting protocol stack: gap in the chain between ancients and leveldb

I'm running a Geth mainnet node. As the size of chaindata is rapidly rising, I moved ancient to an auxiliary HDD plugged in to the same system. Some time afterwards (not sure when, maybe days?) I ...
1
vote
1answer
16 views

Save stack traces while syncing

I have been working on a project, where I would like to trace all transactions from a block and for this reason I have been using a fast-syncing node. It works well, the only issue is that querying ...
0
votes
0answers
13 views

How to implement full node in Ethereum2.0?

I have been running a full GETH node with Ethereum. When the Ethereum updates to Ethereum2.0 will the same node work or do I need to redo the whole process again? Also do I need to stake ethereum for ...
0
votes
1answer
25 views

How to reset private ethereum blockchain (Geth)?

I am running private ethereum blockchain using ethereum and now I want to reset the chain and delete all the contracts, transactions and logs and restart everything from block 0. What is the best way ...
0
votes
0answers
16 views

Can send ether from geth account to wallet, but not from wallet to geth (invalid sender)

geth is running as a private network. It has its own accounts, stored in its keystore. One of them is used for mining. The others are funded with ether. MyCrypto wallet (desktop version) is connected ...
1
vote
2answers
57 views

How to get reason revert using web3.eth.call

I have a smart contract with required message and pretend to use the required/validation message in front end. require(bytes(hashAlreadyRegistered[hash]).length == 0, "Hash already registered&...
0
votes
0answers
13 views

Setting up a desktop wallet with a private network on geth

Disclosures: I've never set up a wallet before, and am new to geth. I'm not worried about security right now. My goal is to set up several wallets on my private chain (if possible) in order to learn ...
0
votes
1answer
27 views

What is the correct procedure to configure a minter on a USD Coin smart contract?

I have a USDC smart contract deployed and initialized on a local geth node. I want to mint some tokens with the 'mint' function but I am guessing that configuring the minter first with the '...
1
vote
1answer
20 views

What happens when a Contract is added to the genesis block?

Recently I found out that you can add smart-contracts to the genesis block (genesis.json) of your local ethereum network. Since normally, when you add a smart-contract via a transaction, you can call ...
0
votes
0answers
12 views

Which consensus algorithm (POW or POA) is better for private blockchain?

POW requires lots of computational power so as the chain grow long we will need more computational power which is not required for private blockchain.... On the other hand, POA is looking better ...
1
vote
0answers
32 views

How can I calculate gas price and gas limit programmatically using web3j [duplicate]

I am using following code to deploy my smart contract but now my transaction is taking too much time to mine on my private blockchain. String contractAddress = myContract.deploy(web3j, credentials, ...
1
vote
1answer
17 views

transaction receipt was not generated after 600 seconds for transaction

I am running private ethereum blockchain using geth and I am using web3j to send transactions. Since yesterday I am not able to deploy my contract, In my java console I am getting "transaction ...
3
votes
1answer
87 views

Can chaindata be split across two (or more) locations?

With the size of full nodes rapidly growing, I'm looking for a way to split my chaindata across multiple hard drives. I have one internal 1TB SSD capable of syncing the chain, and then an internal HDD ...
0
votes
0answers
8 views

ethstats in geth connection

I have created nodes in private network and started the nodes with ethstats. My server started to take the data from the nodes and displayed on the UI However, my server is stopped and after few days ...
0
votes
0answers
13 views

Specified HTTP/RPC port, yet Geth 1.9.15 will not map that port

I am trying to expose port 8545 on a local geth client for use with MetaMask on Chrome 83.0.4103.106 (x86_64), using a Windows host (10.0.18362.900). I store all my blockchain data on a separate drive,...
0
votes
0answers
11 views

Truffle test stuck when testing with geth endpoint

I tried to test the truffle suite official metacoin example using truffle test. I opened a local private chain using geth with http rpc service open at localhost:8545. My truffle-config.js file is ...
0
votes
0answers
9 views

Unable to debug Mainnet transaction in Remix

I am trying to debug mainnet tx with Remix debugger and I get following error in the console after I provide the tx hash in the debugger box. Is it even possible to achieve what I'm trying to do here ...
0
votes
1answer
33 views

net.peerCount is zero: Two miners are not connected

I'm trying to build a local private blockchain of Ethereum in my own PC using Geth v1.9.15-stable-0f77f34b. I have installed Geth in a virtual machine with Ubuntu 18.04 OS using VMware Workstation Pro....
0
votes
0answers
18 views

decode a transaction receipt which does not have an event log

Is there a way to decode a transaction receipt which does not have an event log? In the case of an event log we have topics which we can decode, but what about the case when an event isn't triggered ...
0
votes
1answer
20 views

Error: “invalid sender” from web3.eth.sendSignedTransaction()

I have a client running a private blockchain. It was started with the following command: geth --datadir private-chain --mine --miner.threads 4 --http --http.addr 127.0.0.1 --http.port 8545 --http.api ...
0
votes
1answer
36 views

how to deploy a smartcontract on the mainnet

I used truffle to create a smartcontract, and then deployed it on Rinkeby (using a local geth node) with this command. It works well. truffle migrate --network rinkeby The smartcontract is an updated ...
0
votes
0answers
28 views

Error: “Couldn't decode uint256 from ABI: 0x” Private Ethereum Network web3js MetaMask

I am trying to call the smart contract for data using this code and every time I am getting this error. I am using a Private Ethereum Network with MetaMask. The calling function is given below. ...
0
votes
1answer
25 views

Decoding input paramters throws invalidity error

Using the abi for a smart contract that I got, I was trying to decode the input parameters for a transaction receipt using web3.eth.abi.decodeParameters function. The logs.json file is as below: { &...
0
votes
1answer
29 views

Can't unlock account while deploying contract with truffle

I am trying to set up a private blockchain with geth, using truffle to deploy a smart contract to it. My goal is to get a private blockchain running with several accounts, deploy some contracts to it ...
0
votes
0answers
15 views

GETH tutorial for the beginners

I am new to Go-Ethereum, wodering is there any Geth tutorial where it shows step by step installation and data collection. More specifically, I am interested in the command line options. As an example,...
1
vote
0answers
28 views

Opcode error when interacting with smartcontract in geth

Initially, I was working locally with ganache and the smart contracts were working correctly. Then I tried to work on geth and I get the following error: Traceback (most recent call last): File &...
1
vote
0answers
36 views

Deploy smart contract to private network

I have been having issues deploing any smart contract to my private network. I'm using geth 1.9.15. Here ALL the steps that I made to get the error: //CustomGenesis.json { "config": { &...
0
votes
1answer
30 views

How can you make HTML Text Box print the value of console.log?

How can I enter input data value in HTML Text Box? The output is good in console.log, but the HTML Text Box displays the error Object Promise. I want to know how to print the value of web3.eth....
0
votes
1answer
22 views

Should Try-Catch error handling be avoided for security? [closed]

What implications can it have to the security of a function if the content of it is wrapped into try-catch statements?
1
vote
1answer
25 views

eth_getLogs was only return erc20 tokens

i have used below command to get every logs on the special blocks but its only return erc20 token logs and ethereum transactions was not listed. my geth command: curl --data '{"method":"eth_getLogs",...
0
votes
1answer
17 views

Why eth_getLogs returns empty result for Ethereum account address?

I'm developing an Ethereum platform and need to fetch the events log of a desired address. I found a code like this: curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"topics":...
0
votes
0answers
5 views

I’m trying to build a versioning System using IPLD and IPFS .Is it possible to publish hashes from multiple users to the same IPLD object?

I’m using Ipfs-api from Infura for interaction .I’m able to create and upload files to the Ipld object .I want to store different versions of the same file on the object.These versions can be ...
0
votes
1answer
26 views

Convert from ether to wei using go-ethereum

Is there any function in go-ethereum, which can convert values from ether to wei and vice-versa? I should notice, that I'm not using geth as standalone app, I'm using go-ethereum as imported ...
0
votes
1answer
37 views

How to implement ether transfer from one EOA to another using a contract?

I am working on a private development network set up with geth with PoA consensus. Everything is working well from the geth console. I have written a Solidity contract to initiate some ether transfers ...

1
2 3 4 5
101