Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
66 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
21 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
114 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
34 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
50 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
1answer
19 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
24 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
77 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
0answers
16 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
1answer
174 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
143 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
vote
1answer
17 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
39 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. ...
2
votes
0answers
37 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
54 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
20 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
1answer
60 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
25 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
290 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
17 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
44 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
29 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
19 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
43 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
29 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 ...
5
votes
2answers
273 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
16 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
55 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
49 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
42 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
42 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
31 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
75 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
66 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
40 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
33 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
132 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 ...
1
vote
0answers
97 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
74 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
34 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
29 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
40 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
35 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
13 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
86 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
43 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
vote
2answers
27 views

Where are the smart contract accounts stored in geth?

I have a single geth node running a private blockchain with a network ID N and data directory data/. I had deployed a smart contract ContractName on the same and things were working fine. I wanted to ...
1
vote
1answer
47 views

How does NONCE prevent a replay attack in case of knowing NONCE value?

I have a question about a nonce in the Ethereum network. I understand that a nonce helps to prevent a replay attack, but there is one particular part that I don't understand. I have applied my ...
0
votes
0answers
12 views

Geth: How to debug an “invalid sender” error?

I am sending transaction to a private, local, instance of geth. I run geth using ./geth --rinkeby --syncmode fast --rpc --rpcaddr 192.168.229.132 --ipcdisable I am using web3.js to send signed ...
2
votes
0answers
29 views

Does Ethereum support just bilinear pairing calculation not the pairing check?

I need to implement bilinear pairing calculation on my contract. Specifically, I have uploaded some parameters and need other users to calculate the pairing for me and I will pay for them if their ...

1
3 4
5
6 7
104