Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [go-ethereum]

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

1
vote
0answers
16 views

geth console - web3.isConnected function and not a function?

I am trying to find out if my node is connected. So I attach geth via geth attach in another terminal. But if I run web3.isConnected it returns function(). But when I run it as a function web3....
1
vote
0answers
14 views

Syncing events history for specific addresses, possible?

I am writing software that needs the full history of events but I only need it for a certain contract address, which I would guess is a very common use case for app developers. Is there a way I can ...
0
votes
0answers
22 views

sending ether Transaction failed when executing multiple transaction

I am sending ether to an array of addresses. I am getting the nonce value from eth_getTransactionCount. But problem is that the first transaction is successful but for the rest of the transactions are ...
1
vote
1answer
19 views

is data structures necessary for a blockchain developer?

I want to know if i had to study data structures and algorithms for being a blockchain developer or a smart contract developer
2
votes
1answer
25 views

goethereum getting publicKeyBytes from given public key

Trying to follow this documentation on verifying a signature: https://goethereumbook.org/signature-verify/ Where I am a bit confused is this line: publicKeyBytes := crypto.FromECDSAPub(...
0
votes
0answers
32 views

How to `truffle migrate` to private permissioned network?

I am running a private permissioned network and would like to use Truffle v5.0.1 for deployment. I use it according to the documentation: Compile my project with truffle compile so that the ./build ...
0
votes
0answers
38 views

Hard fork details: peering, propagation, block building

Some questions regarding the upcoming fork and hard forks in general: Will clients running the new version of geth be able to peer with clients running the old version? If they can peer with each ...
1
vote
0answers
23 views

Transaction submitted through Infura, but not from local node

So, I have a Rinkeby fast sync on my server. When I try to interact with my contract and transfer something, geth says "Submitted transaction", but then I can't find it using its hash on etherscan. ...
0
votes
0answers
13 views

geth created no password account , unlock account “wrong password”

I am using geth window x64 1.8 and also i am using api to call EthereumClient PHP create account. I did't pass any "member_id" to set the password. But the address was encrypted. Please Help!!! My ...
0
votes
3answers
32 views

Dynamically create smart contract structure based on user input

I would like to create a smart contract based on user input. User would provide some information/data from the UI, and based on the information provided my smart contract logic would get defined, and ...
1
vote
0answers
25 views

How to interpret 'peer discarded announcement'?

I am having an private ethereum network consisting of 49 geth nodes running in docker containers. All geth nodes are miners. My topology is following: it's a tree with one root and having 48 leaves. I ...
0
votes
1answer
32 views

Private ethereum network account related query

Please help with below queries: how to reset the paraphrase for an account on private ethereum network Is there a way to delete an account on private ethereum network How to enable the etherscan url ...
0
votes
1answer
19 views

part of private blockchain disapear

I have a private blockchain, mined by one ec2 instance. When I restart the instance, significant part of the chain disappear with all transaction and contracts on it. How can I prevent this?
0
votes
0answers
20 views

Metamask to Private ethereum communication issue [duplicate]

When i connect to my private ethereum network using the 'Custom RPC' of the metamask, it is getting connected from the MetaMask. FYI, i am connecting from outside the network of my server, and all ...
0
votes
0answers
16 views

Can't get the correct balance of a token after I restart geth node within docker

I use docker to build a private network, and then I issue a token and I can get the balance correctly. however, after I stop it then restart the geth node, I can't get the right balance of the token I ...
2
votes
1answer
33 views

How to prevent modifying blockreward in geth code?

I found below variables in geth file 'consensus/ethash/consensus.go' var ( FrontierBlockReward = big.NewInt(5e+18) //.. ByzantiumBlockReward = big.NewInt(3e+18) //....
0
votes
1answer
15 views

Go-Ethereum Call Opts

I'm using the abigen tool to interact with smart contracts in golang and am a bit confused about the Pending variable in the CallOpts. I've been searching around for documentation about the argument ...
0
votes
0answers
19 views

How to register a service for go-ethereum node?

I checked go-ethereum code and I see this piece of code // Service is an individual protocol that can be registered into a node. // // Notes: // // • Service life-cycle management is delegated to the ...
0
votes
1answer
39 views

how to validate and execute an ethereum transaction

I'm confused about how to validate a transaction in Ethereum. In fact, according to my simple knowledge, I know that the transaction row is signed and then the signature of the transaction is ...
0
votes
2answers
29 views

i am sending to an array of addresses but it is showing error on transfer function

pragma solidity ^0.4.16; contract init { address[] public userAddresses; function addStudent(address _user) public { userAddresses.push(_user); } function sendToken(uint ...
0
votes
1answer
16 views

Is block contains any field which directly give me transaction fees in geth server. if not how i can calculate it?

I am using geth server for transaction. After transaction is done i got new block but this block not having any field like transaction fees. So my confused about that is block having any field which ...
0
votes
0answers
43 views

Error in compiling the contract [duplicate]

I am getting this error while compiling the contract using solc: assert.js:350 throw err; ^enter code here AssertionError [ERR_ASSERTION]: Invalid callback specified This is my deploy.js file.......
0
votes
1answer
34 views

What is the different between P2P server and Node?

I checked go-ethereum code and I see 2 files: /go-ethereum/p2p/server.go: type Server struct { // Config fields may not be modified while the server is running. Config // Hooks for ...
0
votes
2answers
41 views

I have some questions using geth

I have some questions using geth. Currently I am using the following version of geth. Geth Version: 1.8.20-stable Git Commit: 24d727b6d6e2c0cde222fa12155c4a6db5caaf2e Architecture: amd64 Protocol ...
1
vote
1answer
31 views

TypeError: 'deploy' is not a function

When running the following code within geth console, I am recieving the following error: TypeError: 'deploy' is not a function var storageContractAbi = storageOutput.contracts['contracts/29.sol:...
0
votes
0answers
20 views

transactions not included in a block although block gasLimit not exhausted (geth)

Following behaviour on geth clique network with block gasLimit = 7000000 3 TXs of the form sent at once from a single account: {from: a, to: b, value: 1, gas:7000000} The only special thing about ...
0
votes
0answers
57 views

How to fix “unexpected directory layout” error when Installing go-ethereum?

All, I hope this question belongs here. I am following a Blockgeeks tutorial, trying to set up my environment for Ethereum blockchain development. I have basically gotten to the final step, ...
2
votes
0answers
24 views

Ropsten chain not syncing

I started syncing my ethereum ropsten chain using geth 3 days ago in fast mode. eth.syncing shows false , but the difference between highest block shown by my node and the one shown at ropsten ...
0
votes
1answer
22 views

Transaction Count in a Block

To get Transaction count on an Account, we use eth.getTransactionCount(Address). But How will I get the Transaction count from one Block?
1
vote
1answer
24 views

The difference between web3.version.network and web3.version.ethereum

The return values of the commands web3.version.network and web3.version.ethereum are: web3.version.network = "The network protocol version" web3.version.ethereum = "The etherum protocol version." ...
0
votes
2answers
50 views

How to install web3j command line to generate smart contract wrapper

I am trying to generate a simple smart contract wrapper using solc and web3j in ubuntu. I have downloaded the source as defined in https://docs.web3j.io/command_line.html Release package can be ...
0
votes
0answers
23 views

MetaMask to Private ethereum network connection - using Custom RPC fails

What should be the network ID (the one chosen is 3 i.e. Ropsten network) parameter in the below command in order, I want to connect with Custom RPC (which is hosting my private ethereum network) from ...
-1
votes
0answers
26 views

Ethereum upgrades to 1.8.20 sync data, data compression causes synchronous data to stop

The following situation occurs in the log during the Ethereum synchronization process. INFO [12-24|14:14:24.470] Imported new chain segment blocks=39 txs=5439 mgas=265.638 elapsed=8....
-1
votes
0answers
24 views

Fatal: Failed to start the JavaScript console: api modules: context deadline exceeded [duplicate]

I am trying to attach a console to a running geth on local machine but each time it says "context deadline exceeded". I have tried all these but same error: geth attach /path/to/ipc/geth.ipc geth ...
1
vote
0answers
28 views

contract does not gets deploy to rinkeby via Infura

I am trying to deploy my contract to Rinkeby network via Infura. But it actually does not get deploy to network when i run node deploy.js terminal does not spit out the address at which it is deployed....
1
vote
0answers
24 views

aes-128-ctr is not available

While trying to extract key from keystore file using password, using the library keythereum, I'm getting the error: aes-128-ctr is not available I'm using web3 version ^0.19.1. Ref: https://github....
0
votes
0answers
22 views

Bootnode doesn't generates a URL

I try to start a private ethereum blockchain with multiple nodes. I saw in the documentation that you need to run a bootnode which syncs the other nodes. After generating a key I tried to run a ...
-1
votes
0answers
14 views

when to pass the gas as argument while testing the Smart Contract

I am going through one of the tutorials , and I am bit confused that when to pass the gas argument to send function. below is the screenshot in which gas is being specified as parameter. Now another ...
0
votes
1answer
58 views

how to deploy a smart contract in ethereum using web3j

i am following this tutorial tutorial under the section Working with smart contracts with Java smart contract wrappers i followed the same steps but i am getting RunTimeException here is the full ...
1
vote
0answers
9 views

Can I expose a dapp via whisper ?

I have a question regarding the possibility and probably the steps to do in order to be able to export my App via the whisper protocol. how to do it and in which case it can be better than other ...
-1
votes
0answers
8 views

Build Tag documentation to help compile geth with gccgo

I was wondering if it is possible to compile geth with gccgo or more precisely where I can find some build tag documentation for that. Adding the gccgo tag to my build didn't compile, as some ...
1
vote
1answer
31 views

Performance Analysis of Ethereum Clients Geth and Parity

I want to do performance analysis of Geth and Parity. I want to run 1000 transactions serially on each client and want to get transaction processing time for each transaction. How can i get these ...
1
vote
1answer
42 views

How to get list of all transactions on all accunts in parity wallet [duplicate]

I'm looking for simplest way how to get list of all transactions(incoming, outgoing, external, internal, confirmed, unconfirmed) on all accounts created in parity wallet. The listing should support ...
0
votes
1answer
19 views

How to use event log in solidity contract using go language

I have created ethereum smart contract using go language. Smart contract successfully deployed. I have a created many transactions on ethereum private network. But I confuse how to get event log.
0
votes
1answer
30 views

Speeding up Geth Synchronization

What would help speed up synchronization? I'm not sure if it's a bandwidth issue or a CPU issue? If I were to upgrade my processor would that help make it move faster or do I need to upgrade my ...
-1
votes
0answers
15 views

Geth Core Development - How to retrieve addresses written in the genesis block?

I am currently trying to retrieve the account addresses that are stored in the genesis block as seen in the alloc section here: { "config": { "chainId": 15, "homesteadBlock": 0, "eip155Block": 0, ...
1
vote
0answers
44 views

[RuntimeException: java.lang.NoSuchMethodException: SmartContract using web3j

I am following this tutorial for deployment of contract https://www.youtube.com/watch?v=ibAh04Csp0M&index=33&list=PL16WqdAj66SCOdL6XIFbke-XQg2GW_Avg but i am getting [RuntimeException: java....
0
votes
1answer
33 views

Transactions on Ethereum private network using the MetaMask Ropsten test connection?

I have 4 accounts on my private blockchain ethereum network and one of the account has balance of 10000000000000000000 and other accounts have zero balance each. When I connect to this network from ...
0
votes
1answer
41 views

How can we access private blockchain from another network?

I have private Ethereum network running on my local network with two sealer node and one bootnode. I have deployed the private blockchain and configured it using geth. Now I want to create another ...
-1
votes
0answers
35 views

What RPC data am I missing out on by using a geth `fast` node vs a `full` node?

I have read about the differences between geths --fast and --full nodes. In terms of RPC calls, what can I get with a --full node that I cannot get with a --fast? Specifically, can I get events, ETH ...