Questions tagged [go-ethereum]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
6 views

How to tell if `geth` connected to EVM One?

I'm using the EVM One back-end with ewasm/geth according to the following instructions. Geth seems to be starting up as usual with the following command: geth --vm.evm=./libevmone.dylib How can I ...
0
votes
2answers
10 views

How to set a transaction timeout in txpool properly?

I want to limit transaction pending time to 5 seconds, after that the transaction considered as failed; does --txpool.lifetime solve the problem ?
0
votes
1answer
14 views

Giving a big nonce in transaction doesn't return anything?

When we put a low nonce in transaction options we got "nonce too low", but when a put a big nonce (bigger then transaction count) we got anything why ?
0
votes
0answers
6 views

hwo to identifie error from transaction error object?

is it possible to know what is the reason of transaction error from "error" object (nonce, insufficient fund ..) is there status or something to test using it ? Geth error message is generic, I ...
0
votes
0answers
30 views

Solidity bytecode not generated despite no errors

When does a compiler fail to generate bytecode for solidity? The code compiles entirely but both remix and solc js give proper abi but empty bytecode. The contract imports ERC721. Solidity contract: ...
0
votes
0answers
9 views

Geth error: Genesis not found in chain - error on the worker node!

Good afternoon. After restarting the server when trying to run get I get an error. Start command: geth --rpc --rpcport 8545 --rpccorsdomain "*" --rpcapi "db,eth,net,web3,personal" --cache 8192 --...
0
votes
0answers
11 views

How can I make geth to mine just pending transactions and no additional coins?

Since on my private test newtork based on go-ethereum (geth) I want only the miner thread to start when there are pending transactions, I am using the following script: var mining_threads = 1 ...
0
votes
0answers
7 views

Why is geth RPC endpoint binding with all the interfaces?

I wish to run a private Ethereum network using geth. The machine I am running geth on is connected to Internet. geth is launched using the following command line: geth --datadir geth-data-dir --...
0
votes
0answers
4 views

Convert Hashpower to target boundary in Golang

For example, if you give a Phoenix Miner 0x00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffas a boundary, Phoenix Miner understands that to be 4.29 Ghs (4290000000) As shown in ...
0
votes
1answer
22 views

How to change push() method to simple code?

I have this code but it's static and I wanna change it dynamically. function addCandidates(){ if( own == 1 ){ candidate[0].candidate_ID[0] = 1; candidate[0].candidate_ID[1] = 2; ...
1
vote
1answer
33 views

ipfs.infura.io for IPFS gateway and pinning

I'm using Infura API for initializing IPFS. IPFS uses garbage collector to clean 2 weeks old unpinned data in public gateway. So, if I'll pin my hash is it possible that IPFS will still delete my ...
0
votes
1answer
14 views

In ethereum private blockchain, how to get list of transactions of particular address?

I build own ethereum private blockchain.Generating address and assign to users.Now how I will get the transaction info If user make payment from any third party api to our generated address then how I ...
0
votes
1answer
12 views

Private Ethereum blockchain Transaction Issue

Sending ether from one address to another using web3js. Getting issue of "account unlock with HTTP access is forbidden"
0
votes
1answer
24 views

Can we send tokens with data input? [duplicate]

Can we send tokens with data input? I did a bit of research on erc20 but maybe this is quite complicated. Will erc 721 do this?
1
vote
0answers
14 views

How to forcibly switch Geth to follow other chain and not the largest?

During the previous fork on Ropstan, my node seems to follow to the wrong chain if I understood correctly. As for now, it's on 6537730, it's the longest but major players are around 6523511. What are ...
0
votes
1answer
28 views

end process after web3 sendTransaction return transactionHash

I want to end the process after sendTransaction return transactionHash. Here is my code currently : const Web3 = require('web3'); const web3 = new Web3("http://127.0.0.1:8545"); async function task(...
0
votes
0answers
35 views

Linked contracts not running on go-ethereum

A very simple linked contracts example where A contract has a variable and B contract queries the A contract's variable is running ok on Ropsten+myetherwallet and Remix sandbox, but it fails when ...
0
votes
1answer
19 views

Why does solc output bytecode that is not in valid hex format?

I compile my solidity file using the following command: solc Encoder.sol --bin --abi --optimize -o <output_dir>/ Then I try to deploy it in Geth: Encoder = eth.contract([<abi file content&...
0
votes
0answers
22 views

truffle migration: tokenName and tokenSymbol do not show up in explorer (Ropsten)

I created an ERC20 contract with Truffle, everything went right except for one thing: the name and symbol of the token does not show up in etherscan. I used the ERC20.sol provided by openZeppelin. My ...
2
votes
0answers
21 views

How do I check transaction status using go-ethereum simulated back-end?

Using the go-ethereum simulated backend, I would like to: 1) Instantly commit a transaction so that it either succeeds or reverts in a given simulated blockchain. So far I'm using sim.Commit() to ...
0
votes
0answers
11 views

How to find out in blockchain ledger the current ownership of asset being transacted

I am new to blockchain and smart contract as well. In smart contract we can only save the current state of any transaction but if we need to know the previously expunged transactional data ie, the ...
0
votes
0answers
13 views

Where is AdjustTime in go-ethereum?

There are references to the go-ethereum simulated back-end to containing an "AdjustTime", e.g., here https://github.com/ethereum/go-ethereum/issues/16655. It doesn't seem to be part of the library ...
0
votes
0answers
13 views

I get no data from geth console

I have installed ethereum and geth (1.9). It is running and geth --version the result is: > Geth > Version: 1.9.5-stable > Git Commit: a1c09b93871dd3770adffb177086abda1b2ff3af &...
0
votes
0answers
11 views

bootnode connectivity issue

I am trying to setup POA network and for that I am using bootnode. but I am having difficulty with connection to bootnode. i am using this command gives error. bootnode -nodekey boot.key -verbosity ...
0
votes
0answers
21 views

Ethereum classic node syncing, still around approx 100 blocks behind even on SSD

Does somebody know what to do? SSD disks are not enough? How much cache do I need to allocate for it to sync in time? Still around 100 blocks behind and 0/0 blk/mgas sec, sometimes 1 / 0 blk/mgas sec. ...
0
votes
1answer
36 views

How can I unlock my account

I cannot unlock my account. I decrypted my account from encrypted accoun, and want to unlock it to deploy contract. However, I am getting this error, Node error: {"code":-32000,"message":"could ...
0
votes
1answer
43 views

Node error when I deployed smart contract - Web3.js

I get this error when I deployed smart contract to my private chain. Error: Node error: {"code":-32000,"message":"unknown account"} This is my web3.js code. const bytecode = "...
0
votes
1answer
46 views

Failed to read genesis file: open genesis.json: permission denied

First of all I have to say that all this things will work on my windows machine. Today I started to do the same things on a ubuntu machine (with ssh and private key authentication). I've created a ...
1
vote
2answers
29 views

How to know the current block reward in Ethereum

How to know the block reward value for a Particular block . Like the block reward has decreased from 5 to 3 to 2 ether now. So if i an given a block number what is the formula to calculate the block ...
0
votes
0answers
22 views

How to build an ethereum based wallet with custom UI?

I have been interested in ethereum for quite some time now and have always wanted to learn ethereum development. I decided to create my custom erc20 tokens i was able to create 2,00,000 tokens. Now i ...
0
votes
0answers
22 views

How to deploy contract instance in blockchain with abi and contract address?

I am following this (python ethereum interface tutorial) and contracts to compile and deploy in ganache cli. Till now i am able to compile and deploy contracts with web3.py,py-solc and ganache node. ...
0
votes
1answer
29 views

getting full pending transactions from Infura

I use Infura to get all pending transactions from Ropsten: web3.eth.subscribe('pendingTransactions', async (error, txHash) => { let tx = getTransaction(txHash) ... } With this ...
0
votes
1answer
13 views

JSON-RPC: TheDao contract returning not null values for not existing methods in the contract

When using the geth JSON-RPC eth_call to retrieve some ERC20 token contracts symbol and name information, it comes up the case of TheDao contract. I was expecting to receive a null/empty string like ...
0
votes
0answers
7 views

Puppeth usage in private PoA

I am about to setup a private network using Geth PoA (clique? still unsure as to what the purpose of this protocol is- clique not PoA); having rented 3 servers. My concern is should I be using puppeth ...
0
votes
0answers
7 views

web3py Filter Contract Events

I am new to web3py and I am trying to filter the events of a certain ERC20 contract. I can successfully call the contract's functions, but I struggle with the events. contract = w3.eth.contract(...
0
votes
1answer
45 views

Solidity returning a value to authorized address

I am writing a Smart Contract that saves a certain random hash given by the owner that is used for a 3rd party reason. I would like the owner of the contract to specify some Ethereum addresses that is ...
1
vote
1answer
14 views

Geth and JavaScript

I want to deploy a private blockchain using Geth. I am considering using JavaScript to build the backend as I did before (NodeJS) but what about the smart contract? Since it is private is there a way ...
0
votes
0answers
25 views

Timeout while running contract

I have created a private blockchain and a private networ using Geth i have submitted a contract for deployment.. i can see in main geth CLI there its showing as after that I did mining .. is that ...
0
votes
1answer
24 views

create new account using personal.newAccount [closed]

How to retrieve their private and public key.I created one ethereum address using command line personal.newAccount .When I am checking this address in etherscan it shows 0 balance but in my ethereum ...
0
votes
1answer
23 views

Can I put a lock on an already issued erc20 token?

Can I put a lock on an already issued erc20 token? I have issued a fixed erc20 and I want to know if it is possible to apply locku to smart contracts.
0
votes
0answers
21 views

Web3 - Total Suppy

Just wondering if there is a way to calculate the total supply via web3? I imagine you'd need to scan for all addresses? Not sure where to start with coding this one.... EDIT: So since it's not ...
0
votes
1answer
30 views

Ethereum 2.0 (Serenity) & PoS

I understand that the underlying consensus model changes from PoW to PoS. However, will it also result in changes to how wallets interact with the network? Will transaction fees still have to be paid ...
0
votes
1answer
19 views

Geth-Clique: 2 sealer POA network - sealer nodes not mining - Signed recently, must wait for others - stuck

I have the following setup for a geth clique POA network, however blocks are not mined. The network consists of two separated nodes which are both acting as an active sealer. Sealer 1 Start Command ...
0
votes
1answer
30 views

How is Ethereum Virtual Machine (EVM) isolated (sandboxed)?

I always had this question in mind: What are the used technologies, in order to achieve the isolation of the EVM? does it just run as an isolated process in its own namespaces using the linux feature ...
0
votes
0answers
18 views

How to manually close a websocket connection to ganache-cli

I am trying to reproduce a bug which happens after my websocket connection restarts. To pinpoint the problem I am trying to manually close (and then restart) the ws connection to my ganache-cli node. ...
0
votes
0answers
36 views

Smart Contract is not working on Geth private network, while it does work on Ganache as well as Remix

I've only begun working with geth from last week and have faced the quite a challenge. I've written a smart contract and it works on remix (JavaScript VM) but somehow it does not work on my geth ...
0
votes
0answers
11 views

Inconsistent responses with 'eth_getTransactionByHash' through RPC API. Can anyone help?

I have been using the requests library with python to query the geth/rpc api in order to get ETH transaction data. I connected to geth via "geth --rpc --unlock TESTINGADDRESSWITHNOVALUE --allow-...
0
votes
0answers
21 views

Fetch ETH USD Rate from past using Oracle

Is it possible to fetch the USD rate of ETH at a specific time in the past to a smart contract from an external API using an oracle? i.e. I have a function which tracks whether now > start + 10 ...
0
votes
0answers
22 views

geth issues while running command

I am running the following command with added parameter miner.gastarget on a linux server since we had issues while developing, and have to increase gas limit sudo geth --ipcpath "/home/...
0
votes
1answer
60 views

Web3 js installation error

I want to install webjs so I run the below command but it is showing an error. $ sudo npm install -g web3 npm ERR! path git npm ERR! code ENOENT npm ERR! errno ENOENT npm ERR! syscall spawn ...