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

estimateGas works on Truffle, but fails on geth

I'm trying to estimate the gas required for deploying a smart contract. It works fine in Truffle, but fails in Geth for some weird reason: truffle(develop)> await web3.eth.estimateGas({ data: '...
0
votes
1answer
27 views

JSON RPC-HTTP API have any sort of rate limiting or throttling?

Is there any sort of rate limiting on the RPC-HTTP API? Trying to track down why my node (private chain) can only handle ~40 requests per/second. I am only load testing it with eth_blockNumber so they ...
0
votes
0answers
11 views

Can't send when geth started with no peers

I am trying to follow these instructions to send eth without syncing on my pc. ./geth-1.9.0 --maxpeers 0 console Then TX={ from: FROM, to: TO, value: VALUE, nonce: NONCE, gas: GAS, gasPrice: ...
2
votes
0answers
33 views

when syncing state trie of an Ethereum node, why not start from a recent block to reduce syncing time

as explained in this issue: https://github.com/ethereum/go-ethereum/issues/16218#issuecomment-371454280 when we are syncing an eth node, firstly it downloads the blocks, then the states, the first ...
0
votes
3answers
55 views

Error: new BigNumber() not a base 16 number: at L (bignumber.js:3:2876)

I can not find what the problem is, someone can help me Contract pragma solidity ^0.5.9; contract certificarProceso { address public creador; address emisor; string informacion; ...
1
vote
1answer
15 views

How to get the hash of a smart contract deployment transaction with only a smart contract address?

Is it possible to derive the hash of a smart contract deployment transaction using only a smart contract address? If so, what is the best way of doing so?
1
vote
1answer
36 views

How to detect node(peer) in the network

Hi I need check is certain node is currently connected to the network(or current peer). How I can do it, and how to identificate node by ip address or how? P.S. via api or (sorry not go-geth client) ...
0
votes
0answers
18 views

How much storage space does a fully synced node need?

I'm planning on launching a virtual machine for Ethereum development, but I have no idea how much storage space to allocate to it. Can anyone tell me how much storage space a fully synced node uses?
1
vote
1answer
24 views

how to run my private geth node in https locally

i have my private ethereum blockchain but i need it to run in https://localhost:8545 or https://0.0.0.0:8545. currently it tun in http://0.0.0.0:8545 but when i try to connect it with Myethereumwallet ...
1
vote
0answers
22 views

How does one find/generate the SectionHead, CHTRoot and BloomRoot on a private network

I'm relatively new to go-lang and Ethereum, so I started off by deploying a private network at home and over a few servers. I'm now working on trying to get light clients to sync but I know for a fact ...
0
votes
1answer
26 views

abigen error : Failed to generate ABI binding: unsupported arg type: tuple

Hello I 'am trying to generate Go ethereum binding for a smart contract in which I have a function that takes a struct as argument. It seems that abigen doesn'tsupport this argument. struct Device { ...
0
votes
0answers
33 views

Hosting pet-shop DApp on IPFS - JSON Files problem

I am trying to host DApp "pet-shop" which one of the truffle boxes on IPFS. rsyncing of src, build/contracts and ipfs add files went very well and there are plenty of peers as seeders on the network ...
0
votes
1answer
28 views

I cant deploy contract on geth

I am trying to deploy my contract using geth on my private network. When i use truffle mirate --reset shows that is has been deployed but the metamask gives me an error( ALERT: Transaction Error. ...
0
votes
0answers
37 views

Set Date and Time in a Private Network

I have created a private network using geth in ubuntu, but it takes date & time from the system on which it runs. So if the system date of the master node is changed, it affects syncing on the ...
0
votes
0answers
58 views

Truffle Contract deployment >> Error: Returned values aren't valid, did it run Out of Gas?

I have a rpc enabled running private ethereum blockchain node with mining enabled. I have connected to it using metamask and have performed some contract interactions (deployment, calling functions,...
0
votes
0answers
26 views

intermediate value is not iterable

I try to construct a transaction with Node (11.4.0), ethereumjs-tx (1.3.7) and web3 (1.0.0-beta.55) and Infura. Infura gives me '0x35b' for the nonce, then I create the tx: amount = 0.001; nonce = '...
1
vote
1answer
60 views

What's wrong with my code, I am signing a transaction? Invalid v,r,s error?

func main() { privateKey, err := crypto.GenerateKey() if err != nil { log.Fatal(err) } auth := bind.NewKeyedTransactor(privateKey) balance := new(big.Int) balance....
2
votes
2answers
191 views

How to modify the base fee 21000 gas for a simple transaction?

I found that for a simple transaction, the UsedGas is constant value(i.e. 21000). Can it be modified when sending a transaction or configured somewhere? Thanks.
0
votes
0answers
16 views

signature verification without solidity

Hello I want to verify a signature and the format should be VRS (Ethereum standard secp256k1 signature format) and I want to achieve it using only "Java". I found ways to do it using Web3j and ...
2
votes
2answers
64 views

Gas required exceeds allowance when deploying a contract

I try to deploy a contract using truffle to my private ethereum network using geth and i get this error gas required exceeds allowance (6721975) or always failing transaction. I have create an ...
0
votes
1answer
65 views

“gas required exceeds allowance” with eth.sendTransaction on geth CLI

I am trying to follow these instructions. I do not want to sync so I run ./geth-1.9.0 --maxpeers 0 console` and do this: FROM="0x..." TO="0x..." ETH_AMOUNT=0.1 NONCE=1 VALUE=web3.toWei(ETH_AMOUNT,...
2
votes
0answers
32 views

Not able to connect to private Ethereum Network with metamask

I am running a private Ethereum Network in a cloud VM. I started the node with these arguments: geth --datadir test --networkid 123 --rpc --rpccorsdomain "*" --rpcport 30308 --rpcaddr "0.0.0....
0
votes
0answers
25 views

BigNumber Error: new BigNumber() not a base 16 number

I created a dapp and with truffle i dployed on my private ethereum network. The network was created using geth. When i run the dapp i got an error: BigNumber Error: new BigNumber() not a base 16 ...
2
votes
0answers
29 views

How to add or modify account_signTransaction function

In this github.com/ethereum/go-ethereum/accounts/external/backend.go of Ethereum project i see the "account_signTransaction" function and i want to edit or update the logic for this function, where ...
0
votes
0answers
13 views

Geth node from private network freezes and Web3j fails with timeout

I have a private network, and something very weird happens when I try to start the mining via RPC: the node just simply freezes. I attached using geth.ipc and even when I tried to start the miner via ...
1
vote
0answers
34 views

Computational complexity of EVM consensus

Are there any resources that look at the computational complexity of running Ethereum on a private network? I am not considering any smart contracts or even transactions. I simply am trying to find ...
1
vote
0answers
18 views

Do I need to manually enable the upnp at the router when running my node?

I used the upnp lib for my app. It required manually enable the upnp at the router. My PC is inside the company's network. All connections are controlled by NATs. So, I wonder whether GETH's nodes ...
1
vote
1answer
48 views

Ethereum fast sync and wallet balance?

I'm planning to run a Ethereum server for getting wallet balances at a specific time, which type of node should i run, fast sync will work ? or should i go for archive node ?
0
votes
0answers
32 views

SimpleStorage always returns 0

I'm trying to repeat that tutorial - https://medium.com/@wagnertrindade/ethereum-compile-deploy-and-interact-with-smart-contracts-e65bd42a1a0 everything looks good, but getter always returns 0. geth ...
0
votes
1answer
24 views

How does Geth query the blockchain?

This question has probably been already answered somewhere else but I didn't find anything on the internet so I'm asking here. I wonder how clients such as Geth query the blockchain to get specific ...
1
vote
1answer
44 views

How to start a node on private ethereum chain using “geth --config config.toml”?

I set up a chique poa ethereum private chain. the node can start to work using the command below: geth --networkid 123456 --rpc --rpcport "8545" --rpcaddr 0.0.0.0 --rpccorsdomain "*" --datadir ./...
1
vote
1answer
78 views

The EVM throws an error “invalid opcode 0x1c” [duplicate]

I have written a simple smart contract that allows to store a string, and I'am trying to use go-ethereum(which is similar to web3j). When I execute a transaction, I have this error VM returned ...
1
vote
0answers
23 views

The bootnode is not working properly

I am running a private ethereum network using geth. I started the bootnode first following the documentation and ran 5 different nodes on the same machine with same genesis file on same network with ...
3
votes
0answers
26 views

What is the scalability limit for POA Ethereum (number of nodes)?

Tried to find any benchmarks what is the maximum number of nodes for Ethereum PoA network. When does a network latency become crucial? Looking for any sources / empirical benchmarks.
2
votes
1answer
32 views

How do I generate a TrustedCheckpoint(CHT) on my private chain?

I saw this link, but still don't know how to get CHTRoot and BloomRoot, only know that SectionHead is block[(SectionIndex+1)*32768-1].headhash https://github.com/ethereum/devp2p/blob/master/caps/les....
0
votes
0answers
11 views

Geth stuck on “Head state missing, repairing chain”

Geth crashed on lack of disk space, and now is stuck on "Head state missing, repairing chain" on a POA chain. Max verbosity doesn't give anything, nothing, nada, and because it has not recovered, ...
0
votes
0answers
21 views

storing ERC20 inside of Non-fungible tokens?

Is it possible to store value in the form of ERC-20 tokens inside of non-fungible tokens such as ERC-721? If so, could someone showcase how through an example?
1
vote
1answer
34 views

using a contract in another contract

I have my Callee contract in Callee.sol pragma solidity ^0.5.1; contract Callee { uint private val; constructor() public{ val = 30; } function getValue() public view returns(uint) { ...
0
votes
0answers
31 views

Calls to RPC sometimes gets Error: Connection refused or URL couldn't be resolved

I have a backend server that constantly gets logs and parses data from my client node (Clique non-sealer). I restrict the number of calls from my backend server -> client node to 25 at a time. Is ...
1
vote
1answer
73 views

How to call a contract function that alters blockchain state on geth console

It should be easy, but I'm having a hard time using a simple smart contract described in the Solidity language reference called SimpleStorage. It only as one attribute, a setter and a getter, and I'm ...
2
votes
2answers
36 views

returning the struct value in smart contract and experimental ABIEncoderV2

I am storing and returning the struct value by using mapping. pragma solidity >=0.5.0 <0.7.0; pragma experimental ABIEncoderV2; contract Manage{ struct Policy{ string PolicyID ; } ...
2
votes
2answers
58 views

low-level call failed

I'm using the crowdsale contract (https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/crowdsale/Crowdsale.sol). I have deployed a detailedERC20 smart contract. When I send the ...
0
votes
1answer
60 views

Error when estimating contract deployment fee using web3.eth.estimateGas

When I run the code line below: let gasEstimate = web3.eth.estimateGas({from:myAddress, data: bytecode}) got and error: > Error: Node error: {"code":-32000,"message":"gas required exceeds ...
1
vote
1answer
49 views

How to get rid of inactive nodes in Geth

I am setting up a quorum network with Quorum-maker, which uses Geth. It is running at the moment, with three alive nodes. However, earlier I had attempted to create two other nodes, which failed. I ...
0
votes
1answer
17 views

Importing Ethereum Account Private Key and Using on Different Servers

Let's suppose i have a wallet on one remote server, R-1. Is it possible to get the private key of that wallet/account and use it on different remote server R-2? I know, i can copy/paste files under ...
0
votes
0answers
51 views

sendRawTransaction insufficient funds while there is enough balance

Sorry I probably create a topic that was answered multiple times but unfortunately I couldn't find a solution. I'm trying to use RPC server of Geth to send a raw transaction. I've an address with a ...
0
votes
0answers
40 views

Instantiation of an EVM on goLang

I'm dealing with goLang on an go-ethereum fork. In order to query a contract endpoint I need to get a fresh EVM reference for properly call the contract. I've found there is a NewEVM function that ...
0
votes
0answers
27 views

web3js batch execute method gives error

I have private/local network/chain setup. I'm building this with Nodejs-->expressjs. const contract = new web3.eth.Contract(abi, address); const batch = new web3.BatchRequest(); batch.add(contract....
0
votes
0answers
23 views

Is there a way to import bulk private keys in geth or any other offline wallet?

I am running a test which involves creating several thousand ethereum wallets. Is there any way to import the private keys of these wallets in bulk in geth or any other offline wallet?
0
votes
0answers
15 views

Can't call contract function in Remix in Web3 provider mode, but it works in Javascript VM

A simple contract for addition, an error is reported when calling the function add in Web3 provider mode: "Gas estimation errored with the following message (see below). The transaction execution ...