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

Require function does not work in geth

I have a smart contract that uses require to validate the parameters inside some functions and I have noticed that geth 1.9.13 and 1.9.14 do not enforce the condition in require. I could reproduce the ...
0
votes
0answers
9 views

How to unlock eth account using web3?

Hi I'm trying to unlock an account using web3 but it returns empty error. When I use cli it returns true > personal.unlockAccount(eth.accounts[0]) Unlock account ...
0
votes
1answer
9 views

Scalability of private chain with 0 block time

What could be some issues in scalability if a block time of 0 is set to a private ethereum blockchain? If I set it to zero, blocks will only be added to the blockchain every time there's a single ...
0
votes
0answers
9 views

generate DAG before mining process

I have a problem when i install a private ethereum node on my pc using powershell and before mining process I need to generate DAG . the problem at this process it take very long time .. 9 hours and ...
1
vote
1answer
7 views

Connecting to a data directory in a different machine

I have set up a ethereum private network and the data directory configured in the same machine. Is there anyway to create the data directory in a separate machine and connect the geth to that. The ...
0
votes
1answer
14 views

Add a new user using smart contract

I am trying to make a smart contract which can add /delete and modify users in the smart contract. I have just written the code for adding the user but I am getting an error saying "revert The ...
0
votes
0answers
22 views

Geth 1.9.13 and 1.9.14 will not stop

After starting geth-1.9.12 and older with 'geth console' it is easy to stop it with 'exit'. With 1.9.13 and 1.9.14 'exit' seems to exit the console but geth keeps syncing and ctrl+c also does not ...
1
vote
0answers
9 views

Cannot query contract methods after upgrading to geth 1.9

We have been running a geth 1.8 based private PoA chain for a long time. We are trying to upgrade it to geth 1.9. After changing the command line arguments to reflect the new API and remove ...
0
votes
1answer
20 views

eth.coinbase gives the wallet address which is not exist in the system

I'm facing a strange issue, when I execute eth.coinbase command on Geth, it gives me wallet address which is not present in the key directory. But that isn't in the genesis file I'm not sure how ...
0
votes
0answers
11 views

sending transaction giving an error of “unknown account” after some time interval in Geth

I have review kinda same questions on this site, however, the issue in my case is different hence I'm asking. I have setup three nodes for the private chain, and it's working fine. I can send ...
0
votes
1answer
12 views

how to send one transaction from multiples seed wallets? [duplicate]

I would like to know if there is posible to group 3 wallet balances derived from a seed phrase and send one tx. Example : The user received 1 ETH to address A, 1 ETH on address B, ETH on address C. ...
1
vote
1answer
18 views

derivation path for ethereum?

how are you doing! I would like to know what happens if from a ethereum seed I derive a wallet using BIP49, BIP84 derivation path and then send ethereum from another wallet which is BIP32 or BIP44, ...
2
votes
0answers
16 views

Why does Ethereum use JSON-RPC and not gRPC?

I am fairly new to networking protocols especially JSON-RPC and gRPC as they are not nearly as common in web development as REST. I was reading around and seems like gRPC generally performs better. So ...
0
votes
1answer
12 views

Storing and retrieving data from a transaction

I have a private blockchain using PoA and would like to store data in the data field of a transaction. To my understanding, the data field has a 32-byte limit and needs to be hex encoded. Is this ...
0
votes
0answers
11 views

loadScript returns undefined

I am using Ubuntu 20.04 for creating a private ethereum blockchain using geth. I am required to load the "Simple.abi" script present inside home/contract. But when I give the file-path in the ...
1
vote
0answers
28 views

go-ethereum: Return data from contract function

I have a smart contract written in solidity. I deployed the contract to my Ganache network and I can interact with it via go-ethereum using stubs generated by abigen. My function returns a uint256, ...
0
votes
1answer
28 views

problem help me gas * price + value

I've seen many topics, but I've yet not solved my problem. Please, help me! var EthereumTx=require('ethereumjs-tx').Transaction const Web3=require('web3') const web3 = new Web3('https://rinkeby....
0
votes
0answers
10 views

can sign derived wallet transactions with main's wallet private key of seed phrase?

I would like to sign a transaction from a wallet which is derived from a seed, and sign it, with it's parent first address and private key derived from the seed, can I sign any tx of any derived ...
2
votes
1answer
27 views

What you mean by Off-Chain in Ethereum Blockchain? can i use geth as off-chain in DApp?

I have read several articles of off-chain definition and come to know that they are use for scale the ethereum blockchain. but my question is what is actually mean by off-chain word in ethereum ...
0
votes
1answer
25 views

How to connect to my private ethereum network using web3?

I have setup my own private eth network. I wanted to connect to this. So first I have run geth --datadir ./tolotolo --networkid 1115 --port 30304 console 2>>myEth.log It generated geth.ipc ...
2
votes
0answers
24 views

How to determine the uniqueness of an internal transaction

How to determine the uniqueness of an internal transaction Example is this transaction: https://rinkeby.etherscan.io/tx/0xc756517a69239bddffe3e0cb07eba98d3ad0fae1b44fc936a0119dbaf7008942#internal ...
0
votes
1answer
21 views

Verifying ERC20 Contract that uses OpenZeppelin's library contracts

I deployed an ERC-20 Token contract and would like to now verify it on etherscan.io My contract utilizes Open-Zeppelin's library of contracts - which means it's importing one of their contracts into ...
0
votes
0answers
9 views

Fail Transaction Using Metamask And Create Smart Contract Using Geth Private Blockchain

I have an error when building a private blockchain on my computer. The code that I run is like this (Simply my concept make it without mining and only focus on smart contract): genesis.json file { ...
0
votes
0answers
15 views

Getting suffix of blockchain domain

I have a program that can get me the first part of registered blockchain domains, but not the suffix (.eth, .zil, etc.) and am not sure how to associate suffixes with names. I know that in some cases, ...
0
votes
0answers
10 views

What is good peer etiquette for being a light node?

I just started dabbling in running my own light node and it seems like the biggest challenge is finding peers. rfikki on GitHub posts these peer lists (https://gist.github.com/rfikki/...
1
vote
1answer
22 views

Gas price data from GETH

I am able to get gas price data as follows from some oracles (i.e., ethgasstation.info, etherscan.io): { "fast":50.0, "fastest":200.0, "safeLow":10.0, "average":20.0, "block_time":13....
1
vote
1answer
40 views

Whats the best way to sign and send a transaction?

Hey I want to send a transaction that has a message embedded in it. I want the most secure way to unlock the personal account. I have full node GETH installed and am using web3.I have a nodejs script ...
0
votes
1answer
17 views

Can we upload Keystore file to Metamask?

I created a geth Full Node. Through this I created a new account and a Keystore file was created. Can I import this Keystore file to Metamask so that I can transfer funds?
0
votes
1answer
5 views

Pushing process to background causes high kswapd0

I have a cpu-intensive process running on a raspberry pi that's executed by running a nodejs file. Running the first command (below) and then running the file on another tab works just fine. However ...
0
votes
0answers
17 views

What does geth need RAM for on a non-mining node?

I was running a private Ethereum chain on a couple of non-mining Raspberry Pis and encountered quite high and increasing RAM usage. I understand that there was a memory leak with geth versions before ...
1
vote
0answers
7 views

geth’s “debug_traceTransaction” vs parity's “trace_replayTransaction”

Is it at all possible to transform geth’s debug_traceTransaction trace into something that looks like what you get from parity's trace_replayTransaction? Parity’s trace module is extraordinarily ...
0
votes
0answers
23 views

geth mining with a single node on a private test network not working on Mac

I am trying to set up a simple test network with Go Ethereum starting with just one node. I tried on two MacBooks (macOS High Sierra 10.13.6), one with 4GB RAM and one with 8GB RAM and on an AWS EC2 ...
0
votes
0answers
24 views

Getting Blockchain Domains From Transaction Hashes

I am compiling a list of some blockchain domains (.eth, .crypto, etc.) and was wondering what would be the best approach. My strategy is to take something like this: https://etherscan.io/address/...
0
votes
0answers
12 views

indexer for Ethereum wallet-contract transactions history?

I Would like to have my own server with a indexer for a ethereum full node using this repo https://github.com/Adamant-im/ETH-transactions-storage script, to have all wallet,contract balance and it's ...
0
votes
0answers
10 views

fast sync mode node does not work?

I already have my light nodes working but in fast sync mode does not work the version of geth 1.9.3, I got these settings Geth Version: 1.9.13-stable Architecture: amd64 Protocol Versions: [65 64 ...
0
votes
1answer
10 views

1-To-M struct relationship advice *DApp Development

Let's assume that I'm building a property investment DApp. I have two entities involved in the DApp. Those two entities are 1) providers and 2) investors. Right now, a provider is able to offer 1 ...
0
votes
0answers
19 views

TransferFrom - User Experience Examples

Can someone provide some DApp examples where the transferFrom pattern has been implemented and does an at least 'decent' job of providing a good user experience. If not, what is then a convenient way ...
0
votes
1answer
24 views

How other party can access my contract?

I am running private ethereum blockchain. As we know smart contract is used for agreements between non-trusting parties. Now, I am wondering how the other party can access/see my smart contract? ...
0
votes
0answers
27 views

Truffle Error: invalid argument 0: hex string without 0x prefix

I'm trying to deploy and test the smart contracts on the Goerli network using Truffle. While migrating getting below error. Contract: Simple Storage Test suite Simple Storage Set ...
0
votes
1answer
25 views

light node can perform any operation what fast and full sync mode do, exception getTransationreceipt?

I need to send ethereum between wallets or interact with a token on the ethereum network can a light node has a constraint to do that,it can not perform any task as a full or fast sync mode node, I ...
0
votes
1answer
27 views

Running geth in light node?

I would like to run light nodes using geth, but I dont what version of geth is stable to that kind of node or even a sync mode fast node. thanks a lot.
1
vote
1answer
17 views

Isn't the blockchain size going to be a huge problem in the future? [duplicate]

At the moment the blockchain is already quite large. And since the main idea behind the blockchain technology is to get away from services that provide the information and rather have the information ...
0
votes
0answers
8 views

Does creating account with geth command “geth account new” make a new key store holder?

There are multiple ways of creating a ethereum account through geth. geth account new newAcc, _ := am.NewAccount("Creation password"); by importing import "github.com/ethereum/go-ethereum/accounts" ...
4
votes
1answer
39 views

Why is Ethereum licensed under the LGPLv3 license?

Simple question, which I cannot answer myself. Why Ethereum have an LGPLv3 license? Bitcoin has MIT license. Thank you.
1
vote
1answer
23 views

Do other blockchain have gas concepts? [closed]

I understand that Ethereum have gas mechanism to avoid infinite loop and network abuse, but I was wondering whether other blockchain platforms also have gas concepts? Say Cardano, Hyperledger,...
1
vote
0answers
37 views

Geth server syncs itself very slow on SSD storage

This is the second time I've lunched a Geth server with full mode on a server with the resources below: 4Core CPU 16GB RAM 400GB SSD But server keeps staying arount half of highestBlock and its ...
0
votes
0answers
6 views

how to sync a node from specific node or ip

I would like to sync a ethereum node but I got a problem i'm trying to sync it as light client but: hub=trezor vendor=21324 failcount=3 err="failed to initialize libusb: libusb: unknown error [code -...
0
votes
1answer
20 views

Get latest block info with gas price, block time etc., from etherscan.io

I am trying to collect information such as, 'fast': 140, 'fastest': 165, 'safeLow': 100, 'average': 120, 'block_time': 8.875, 'blockNum': 10021935, 'speed': 0.8993211072506393,....etc. on the latest ...
0
votes
0answers
24 views

How to config geth node to get ERC-20 tokens balances

I'm trying to tune my geth node to get ERC-20 tokens balances, but y API call always returns {'jsonrpc': '2.0', 'id': 1, 'result': '0x'} My geth node version: instance=Geth/v1.9.13-stable-cbc4ac26/...
0
votes
1answer
10 views

Is it possible to initiate Geth server from a specific block instead of genesis block?

I tried setting up Geth servers in full node different times, and all of them are always behind half of total max block. So, they cannot be synced easily even after weeks. I would like to know can I ...

1
2 3 4 5
100