Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
0
votes
3answers
33 views

Can i know by any method whether the particular address is contract address or simple ethereum address?

Here is the problem I am facing. I am calling some function of already deployed contract using its contract address. Below are the lines of code :- function registerYourBrand(string memory brand, ...
0
votes
1answer
23 views

Can I change state of mapping variable in deployed contract from another contract?

I am calling addCoin and subCoin function of my AirToken contract and Hotel contract. This is function defination of addCoin and subCoin in AirToken contract and Hotel contract function addCoin(...
5
votes
2answers
45 views

Can anyone explain how bytes memory can be converted to address type in solidity

when I am using below function to convert bytes memory to address, this is working fine. Suppose input to the function is 0X0000000000000000000000004af3246b4fff356261136f113411cb187134D675 I am ...
0
votes
0answers
19 views

Contract Error: invalid transaction v, r, s values

I've checked the answer here and here but no luck. System information $ geth version Geth Version: 1.9.13-stable Git Commit: cbc4ac264e9671898bff6ec7e434da3eca4bd273 Git Commit Date: 20200416 ...
0
votes
1answer
31 views

How to find how many nodes are connecting to Geth? [duplicate]

I've lunched a Geth server with default maxpeers which is 100 regarding to original documents. Now, I need to know how many nodes are connecting to my node? Is there any command to find it in Geth ...
2
votes
1answer
19 views

How to create ERC20 token with burns 0.5% of tokens on transfer?

I want to create an ERC20 token. It must burn 0.5% of the tokens at every transfer. For example, When someone send 100 tokens from wallet1 to wallet2, wallet 2 must take 99.5 tokens.
1
vote
1answer
23 views

Can we improve the performance of Geth server by setting maxpeers to 0?

I've lunched a Geth server in full node. I think the performance of machine for syncing is not acceptable and needs much more time to be synced fully. I would like to know if I set maxpeers to a low ...
0
votes
1answer
21 views

Installing geth on Raspberry Pi 3 Ubuntu

I have followed the instructions on the following website (https://chainskills.com/2017/02/24/create-a-private-ethereum-blockchain-with-iot-devices-16/) to install geth Ethereum client on a Raspberry ...
1
vote
0answers
16 views

Implement custom Ethereum client that asks Nodes for their connected neighbours

I'm new to Ethereum so please pardon my lack of knowledge on the field. For that reason my question might be too broad as well. I'm working on a project that visualises a topology graph of the whole ...
0
votes
0answers
23 views

Address generate with xpub key

Hy everyone, I'm doing a hd wallet generator (normal child) with only use xpub key. Therefore, can someone help me pls. With library of golang or main flow of generating from: (xpub key, index) -> ...
0
votes
1answer
7 views

Why knownStates and pulledStates are always 0 on my full node?

It's the second time that I run a Geth in full node. The first one got synced fully, but the second one did not sync after a week. Both servers have the same configuration and infrastructure. Using ...
0
votes
1answer
33 views

How could I measure the total delay (time) to confirm the transaction?

First of all, I'm new to the Erthereum world, I need some help in measuring the total delay (time) require for confirming the transaction. I have a decentralized application over a Rinkeby network, ...
0
votes
1answer
20 views

Why isn't my account balance changing in my private Ethereum network after successfully mining (thousands of) blocks?

I have a newly created private Ethereum "network". I have a question about my balance. In my genesis file, I have my account listed with a starting balance of ...
0
votes
1answer
8 views

Is it possible to explicitly tell if a node is using Geth or Parity?

Is it possible to explicitly tell if a node is using Geth or Parity? This can be from a raw RPC call or the Infura (or other provider) layer. Is there an explicit way to do this without making an ...
0
votes
0answers
25 views

eth_sendTransaction gas required exceeds allowance

$result = $client->callMethod('eth_sendTransaction', [array( "from" => $address->address, "to" => "0xac52822dde76b9c4cd701d5f4402acedb2a86cc1", ...
2
votes
1answer
29 views

Geth Version: 1.9.12-stable keeps getting killed…Out of memory: Kill process (geth) score 901 or sacrifice child

I am experiencing issues with my Geth (Version: 1.9.12-stable) nodes. Very often Geth exhausts all memory, which causes a sudden drop in blocks, resulting in the node falling behind. I am running ...
0
votes
0answers
15 views

Peer nodes of another server not getting connected in private blockchain

I'm doing setup of a private blockchain using PoA, and facing issue in connectivity with peers of another server. I'm using geth 1.8.16, and created genesis file using puppeth. Structure Server-1 ...
0
votes
0answers
23 views

Deployed Smart Contract doesn't work after Geth private node restart

i'm running my private node with Geth, v1.9.13, deployed my Smart Contract via truffle migrate and everything works fine. when i shutdown the machine and startup my node again, everything seems not ...
0
votes
1answer
19 views

How to retrieve the logs of transactions on one contract and multiple addresses

I have an application which should work as an exchange. Customers have their own Ethereum addresses on my Geth server, and they might receive ERC20 Tokens on them. I need to fetch the incoming ...
0
votes
0answers
5 views

Revalidated then Removed node

I have set up a private geth network with a bootnode and a single signer node. I start the bootnode first then the signer node. The signer node starts mining (using PoA) but in the bootnode logs it ...
0
votes
1answer
39 views

Geth light keeps showing “Looking for peers”

My Geth server in light mode was running without any issue up to yesterday. But after that, I only receive these messages continuously! INFO [04-19|12:59:22.181] Looking for peers ...
0
votes
0answers
13 views

Connect an ethereum based blockchain to owncloud

My goal is to create a permissioned blockchain. There are 2 types of users, type 1 user can only read documents, type 2 users can read as well as write documents. I have created a blockchain using ...
0
votes
0answers
13 views

Why Geth light stops working for eth_coinbase error?

I've lunched a Geth in light mode. Then, I started it using the code below: geth --syncmode light --rpc --rpcport 8545 --rpcapi personal,eth,web3,txpool But for several times, loading new headers ...
0
votes
0answers
21 views

Looking for peers in a private run blockchain using geth

I've installed geth on ubuntu 16.04 (xenial). After creating the following genesis.json file: { "config": { "chainId": 4568, "homesteadBlock": 0, "eip150Block": 0, ...
0
votes
0answers
12 views

I can't see my running nodes(they run on docker containers) on the eth netstats dashboard interface

I have a POA network of 2 nodes and a bootnode, I can't see my nodes listed on the dashboard my nodes containers are up. the API of eth-netstats app returns web3 connection failed all nodes and the ...
0
votes
0answers
14 views

How to find if transaction completed successfully?

I'm using eth_getLogs() to check transaction details. I need to know how can I confirm that each transaction is done successfully. I'm running Geth on a light mode, and using web3 to retrieve data. ...
0
votes
0answers
15 views

Error: exceeds block gas limit undefined (2)

I am using geth 1.9.12. When I try to deploy any contract (below the code), using the console, I get the error: Error: exceeds block gas limit undefined What exactly is this error? Thanks in advance. ...
0
votes
0answers
13 views

Error: exceeds block gas limit undefined

I am using geth 1.9.12. When I try to deploy any contract, using the console, I get the error: Error: exceeds block gas limit undefined What exactly is this error? Thanks in advance.
0
votes
0answers
16 views

Is there any way to get internal transfers from Geth?

I used to get internal transfers (transfers of ether done by contracts) using trace_replayTransaction Parity method, but I'm having to many problems with the node, so I want to stop using it, and I ...
0
votes
0answers
20 views

web3 filter function not working

I am trying to filter Transfer events from my local Ethereum node using web3 py. I am accessing my local ethereum node remotely using teamviewer and it was running and fully synced as well. My code is ...
0
votes
0answers
18 views

Write Secret Shared Data onto Ethereum

What would be an approach to do the following: 1) Secret Share data provided from a file 2) Publish the secret shared data onto an Ethereum instance (aleth/geth) 3) Be able to retrieve and ...
1
vote
0answers
11 views

How to check my geth current configuration?

I have a geth node. I wanted to chagne txpool.lifetime to "24h0m0s". So I made the configuration file using --txpool.lifetime="24h0m0s" That file has the configuation like below. [Eth.TxPool] ...
0
votes
0answers
18 views

Geth returns txhash of sendTransaction() but nothing is broadcasted on Ethereum blockchain

I have a strange issue with Geth. The code I've written is based on web3.php and worked well up to now. Currently, I'm testing sending ETH via sendTransaction() method. The operation finishs and I ...
2
votes
1answer
16 views

How is this account able to consistently get her/his transactions with zero gas price mined?

This account https://etherscan.io/address/0xbe7cd41e060cdb07c548d6c65f1d786e43f1c392 is able to keep sending transactions with zero gas price and they are mined. If I try to do the same, my ...
0
votes
0answers
17 views

Is it possible to sync an archive node with HDD in 2020?

Many bloggers have pointed out that it is almost impossible to sync an ethereum archive node using a HDD.But most of those blogs were published in 2018. I've seen several version updates of geth ...
0
votes
1answer
29 views

Is the blockchain compatible between Geth and OpenEthereum(Parity)?

I'm trying to set up a full node. Being a DeGoogler I instinctively avoid Go, so I defaulted to OpenEthereum. After compiling on my maching I get 'Illegal Instruction', which seems to be because of my ...
0
votes
0answers
10 views

Miners are not working when running geth command in background in linux

I am running my private blockchain using geth on my ubuntu server with following cmd then its working fine geth --datadir ~/chaindata/ --networkid 45123 --verbosity 3 --rpc --port 30304 --rpcport ...
0
votes
1answer
13 views

How to add member NOT peer node to private ethereum network

I followed this parity-poa tutorial to build a private POA ethereum network in local. I want to add member node to this network . so i run parity client with below configuration toml file: [parity] ...
0
votes
1answer
23 views

'Contract' object has no attribute 'eventFilter' web3.py

I am trying to filter Transfer events from my local ethereum node using web3 py. I have created a venv in visual studio code. My code is as follows: def decodeLogswithfilter(t1, t2, abi1, addr): ...
0
votes
1answer
76 views

Provable API for calling ETH-USD price in a contract

This contract is hosted at https://github.com/provable-things/ethereum-examples/blob/master/solidity/truffle-examples/kraken-price-ticker/contracts/KrakenPriceTicker.sol I have made the constructor ...
0
votes
0answers
7 views

how to find correct path using loadScript in geth when attaching localhost

I get a false returen when I start geth and try to load a script $geth attach http://localhost:8546 when I connect to parity client and I try to load a script loadScript("./scripts/addresses.js") ...
0
votes
2answers
13 views

What causes .deployed() to return same contract instances in each test

It took me awhile to diagnose the problem. At first I just noticed that the states of my contracts were being affected by previous tests when running truffle test I then looked in the terminal tab in ...
0
votes
0answers
31 views

Chainlink services are not supporting the privateFor transactions in Quorum/Kaleido

We are exploring Kaleido and Chainlink for one of our use cases. What we have done: We have created a network of Quorum/Raft nodes. We had setup the chainlink service for the network. We have setup ...
0
votes
0answers
16 views

Geth trace transaction int old block

I start geth without setting gcmode=archive at the beginning. But when i realized that if i want to get all the internal transactions in ethereum blockchain, geth has synced at the blockheight of ...
0
votes
0answers
13 views

get statistics by event filters or normal blockchain traversal

I want to ask what's the better approach among the following two: Filter events using address.eventFilter function or traversing the local blockchain block by block and getting events statistics. I ...
0
votes
0answers
16 views

Where can I buy some usdt in small amount for testing on mainnet

Any where to buy small amount of usdt of mainnet for testing?
2
votes
1answer
72 views

Token Swap From Ethereum Host Network To Different Blockchain

What is a good way to swap tokens from the Ethereum host network to a different network (i.e. the Tron blockchain)? Would the best way to do this be to have a smart contract where ERC20 token holders ...
1
vote
0answers
29 views

Error: gas required exceeds allowance (10209310) or always failing transaction [duplicate]

I'm newbie in ethereum and on my first lession I faced an issue that I can't solve: Hello.sol: pragma solidity ^0.6.0; contract HelloSol { uint savedValue; function setValue( uint newValue ...
0
votes
0answers
21 views

Getting HTTP/1.1 403 Forbidden when i want to get account balance

Some months ago, I was able to get the balance of my account using this code (I run the code in Unity 2018 and get the code from tutorial in github. I modified some parts of the code). This is the ...
1
vote
1answer
48 views

Insufficient fund for sending USDT token on an address with no Ether

I've an Ethereum account in Geth which has received 4 Tether (USDT). I want to send 1 of them for test to another account, but I receive this error: insufficient funds for gas * price + value ...

1
2
3 4 5
99