Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
1answer
27 views

What is the difference between create and newAccount in web3js?

There are two ways to create account one is web3.eth.accounts.create() and web3.eth.personal.newAccount(); function, When I use newAccount() function account is created in my local geth client but ...
1
vote
1answer
23 views

How create transaction raw data for using “eth_sendRawTransaction” in C#

My IoT device connects to another computer via Wi-Fi on which Ethereum (Truffle/Ganache) is running which receive a RPC from the IoT. My task is to create raw transaction data on this IoT Device, so ...
0
votes
0answers
22 views

How to handle password for unlock Account in web3?

In web3 there is function web3.eth.personal.unlockAccount(address [, callback]) to unlock the account so whenever we call the smart contract function we need to unlock the account in geth client ...
0
votes
1answer
18 views

Gas limit and transaction fee in clique POA chain

I set a private POA private chain using default setting of Puppeth tool. The gaslimit in genesis.json is: "gasLimit": "0x47b760" The decimal number of gasLimit is 4700000 then I start node by ...
0
votes
0answers
17 views

invalid genesis file: invalid character ',' after object key

I am trying to created ethereum private network. platform - Windows , geth 1.8.27-stable I created C:\myeth\genesis.json. genesis.json { "config": { "chainId": 0, "...
0
votes
1answer
22 views

How to modify geth node configuration after launch

Is it possible to modify geth configuration when the node is running? For instance, open a port, add more parameter flag to control geth node functions. I think maybe there are two ways: One is stop ...
0
votes
0answers
19 views

How to handle floating point number in Solidity? [duplicate]

I read that there is no support for floating point number in solidity, So how we can handle it. If I want to store 12.23 or something like that.
0
votes
0answers
12 views

Testing a Smart Contract on two different devices at the same time

So the goal is to have two computers each owning one account or just different addresses on MetaMask for example and connecting them to the same Smart Contract that is deployed on Rinkeby. Now how ...
0
votes
0answers
21 views

how much structure variable does solidity support? [duplicate]

Error: "UnimplementedFeatureError: Variable inaccessible, too deep inside stack" code: contract create{ struct s{ string s1; string s2; string s3; string s4; ...
1
vote
1answer
20 views

What is deployed smart contract address in solidity?

In remix IDE when we deployed the contract there is address on it. What is that address and what that address is used for? Like Ethereum account address is use for transaction and identify the user ...
0
votes
1answer
29 views

Does nonce same for all node?

Suppose in blockchain network we have 5 nodes and we have new transaction done by first node of network, so now rest of 4 node will mine the transaction to commit it in blockchain network, will the ...
0
votes
1answer
17 views

How merkle tree is used to verify transaction in blockchain

May any one give example how merkle tree is used in blockchain to verify the transaction? I confused because validation of data in ethereum is done through the proof of work where you find the nonce(...
0
votes
1answer
15 views

Geth expose eth.call only via --rpcapi

Need a way to open Geth publicly, but don't want to expose all eth methods. Need only eth.call. Using --rpcapi eth will expose all eth methods. How to expose only particular one?
0
votes
2answers
32 views

Miner address is all zero in block

I sent a transaction in clique POA private chain and get the block via transaction hash. Why is the miner address for this transaction all zero? step 1: send a transaction > eth.sendTransaction({...
1
vote
3answers
43 views

How data is secured on ethereum network?

Blockchain is distributed decentralized database and same data is present on every node on network so now anybody on the network can see my data, so how it is secured over blockchain network?
0
votes
0answers
19 views

How to prepare for blockchain interview?

I am learning blockchain and want to pursue my career on blockchain, so what will be the best way to do that? What certification I must do and what think I should cover? appreciate all your career ...
0
votes
0answers
9 views

Private chain access mode

I set up a private chain with 4 nodes.Two nodes are sealer, the others are normal ones. To send a transaction, need to attach one node and then send it. I think in this way, only one node is used to ...
0
votes
0answers
24 views

How use vscode to debug geth with breakpoints interactively?

I set up vscode enviroment and launch a node with launch.json: { "name": "Launch geth main", "type": "go", "request": "launch", "mode": "debug", ...
0
votes
1answer
55 views

The method eth_sendTransaction does not exist/is not available on infura

Im trying to send transaction to simple greeter contract with web3.js on infura node.while doing soo, Im getting this error. throw errors.InvalidResponse(result); ^ Error: The method ...
0
votes
1answer
24 views

signing transactions with web3.js

Im trying to create a node.js based dapp that interacts with ropsten ethereum network via infura node.here we need sign transaction with web3.js. but the code showing error from the contract side. ...
0
votes
0answers
14 views

clique 2 nodes stuck mining after outage for one of them

i have setup a network of 3 nodes, with 2 of them being sealers (clique) and a third one acting as a proxy. I know there should be an odd number of nodes to avoid split brain scenarios, but the goal ...
0
votes
1answer
48 views

Sending transaction with web3.js

I'm trying to use web3.js with infura.io to interact with my smartcontract. here is my simple greeter contract code pragma solidity ^0.5.7; contract greeter{ string greeting; function greet(...
1
vote
1answer
89 views

How to trim a string in solidity?

I have a function where one of its arguments is a string. How would I check the string for leading and trailing whitespaces and remove those characters? If i get something like this: " " => ""...
0
votes
1answer
36 views

Deploying contract using byteCode

In that example you can see, how to deploy a new contract having just ABI and ByteCode (uses for copy and deploy contracts from mainnet to your testnet for example). /****** Deploying new contract ...
1
vote
1answer
14 views

How to develop a new module in go-etherum like eth, admin, etc

For instance, the module is named "mymodule". It can be used in geth console and web3 like mymodule.funcA(),web3.mymodule.funcA(), Thanks
1
vote
1answer
32 views

Parity 2.2.7 doesn't recognize “registrar” or “eip150Transition” in the genesis file

I am trying to run a Parity client and sync it with a Geth private blockchain. I was able to do it at first, but after adding "constantinopleBlock", "byzantiumBlock" and "petersburgBlock" to the ...
0
votes
0answers
17 views

How to stop the update check for the mist in ubuntu

i'm deploying my private chain in Ubuntu16.04, everything works fine, and i can connect to the node by the command mist --rpc /geth.ipc,but when i have to connect the private chain and mist offline, ...
0
votes
0answers
19 views

How can I store the hash of a set of data in the ethereum and make the chain validated always?

I am working on a University Management System and I want to develop the system using Centralized Database like Mysql and to keep the data safe I want to use blockchain to store the hash of the data ...
0
votes
2answers
28 views

Load accounts to truffle

I'm using truffle v5.0.14 to handle my contracts. All was well while developing with ganache, but when I wanted to deploy to the real network (a private one) I have problems with the account. The ...
0
votes
0answers
21 views

Send transactions from any address (account) to a private ethreum network (PoA)

I am trying to send a transaction to a private Ethereum network (PoA) using an arbitrary address. However, the network is not accepting transactions from that address. Are there any method to unlock ...
0
votes
0answers
51 views

How to decode SHA256 hash value and retrieve data in Solidity

I am working on a project in solidity where i am encode a string to SHA256 hash value, and now i want to decode SHA256 hash value and retrieve the actual data. please help hoe to do it. Below is the ...
0
votes
0answers
26 views

Store data on ethereum blockchain from a text file

I have a simple smart contract running over a local Ethereum node. It has two functions: one for sending data and another for retrieving it back. I have a text file and want to send data from it to ...
1
vote
0answers
20 views

Geth Dump Has Been Running For A Week

For my project I want to dump the full state data of all Eth wallets/balances. I have a fully synced Geth node with all state data (over 2TB). I started a block dump geth dump 7300000 --datadir "/...
1
vote
0answers
13 views

Access tools remotely

I've got nodes running on VMs on Azure etc. Upon which I deploy stuff like blockchain explorers. The thing is that all these tools run client side via js, and they call the rpc endpoint via http://...
1
vote
0answers
32 views

ERC20 Token support for metamask website payment

I have the following code working in my site to accept ethereum payments in my website via metamask.... <!DOCTYPE html> <html> <head> <script src="https://cdnjs.cloudflare.com/...
0
votes
0answers
15 views

What are the similar network status monitor software similar to eth-netstats?

I'm trying to set up a network status monitor&management system on my private eth chain. For eth-netstats,how to customize the status items as wanted? I also want to investigate some similar ...
2
votes
1answer
42 views

How to calculate circulating supply for geth private network? [closed]

SUBJ. I have geth private network with custom reward progression and looking for a way to calculate circulating supply.
0
votes
0answers
42 views

“ SyntaxError: Unexpected end of JSON input” while interacting with smart contract using node instance

Im trying to interact with my smart contract using web3js. when i run js file using node instance i.e. node myfile.js Im getting error like undefined 1 SyntaxError: Unexpected end of JSON input ...
0
votes
1answer
23 views

Ethereum receipts blockid and hashes

Preface: The question relates to the relationship between the content of the Ethereum's receipts and the hash of the block header. Problem description: I wonder, in Ethereum, blockid is based on the ...
0
votes
1answer
18 views

Staking of coins

I have a question on staking of coins. Suppose there are 10000 tokens in a user wallet, and he wants to put 5000 tokens on staking for a certain time period (i.e That 5000 tokens should go to an ...
0
votes
0answers
19 views

Service to show number of state entries for syncing?

When syncing a node it would be helpful to know (an estimate of) the number of state entries in the current state to assess how long it takes to finish syncing a node. Is there a website, service or ...
0
votes
0answers
18 views

Getting Started with Hosting a Beacon Node & Validator Client using Geth in a Cloud Provider

I am considering hosting a private Beacon Node & Validator Client with the 32 ETH requirement. I am able to build geth locally and feel I know enough to want to venture and offer my own node on ...
0
votes
1answer
24 views

Viewing transaction events by using web3 on geth console

According to https://web3py.readthedocs.io/en/stable/contracts.html#web3.contract.ContractEvents.myEvent web3 allows to extract the pertinent logs from a transaction receipt: tx_hash = contract....
0
votes
0answers
18 views

Deploy contract in geth, call contract functions using go, no errors and Variable has no value. However test in remix sucessfully

My contract in remix runs ok, and I use truffle to deploy the contract successfully. When I call a contract function to assign values to mapping through the contract address using go, both geth ...
0
votes
0answers
27 views

Posted byu/johnthemiler 5 hours ago Ethereum Wallet / Mist 0.11.1 Checksum error right after installation [duplicate]

You might be getting this question a lot, but I tried googling first and nothing works. I am trying to set up an Ethereum Wallet locally, but everytime I run the client I get the Checksum error, and ...
0
votes
0answers
25 views

Geth - blockchain remains on genesis block, miner node doesn't mine

When attempting setup a local private PoW blockchain, an issue is arising where instead of mining new blocks, Geth instead hangs on the first attempt to 'commit new mining work'. Between the two geth ...
0
votes
0answers
16 views

Mirroring public Ethereum blockchain to a private chain

I am working on tokenised securities space. Our plan is to run tokenised securities on a public Ethereum blockchain. There is an operational risk that public blockchain becomes unavailable and ...
0
votes
0answers
32 views

Is Geth v1.8.27 incompatible with Solidity 0.5.0?

I set up a private chain using geth v1.8.27, then deployed an erc20 contract in solidity 0.5.0 complied using the 0.5.7+commit.6da8b019 version of compiler. After the transaction was mined, I tried to ...
0
votes
0answers
27 views

Unable to interact with Smart Contract using Ethereum node Javascript console

I deployed a smart contract and to interact with that I've written Javascript. When I use loadScript('requestor.js') in my geth console I'm getting the following error Line 236 in my code is ...
2
votes
0answers
28 views

Does Geth store trace data for later calls (after full-sync with pruning + reexec)?

The wisdom is that having a full node is enough to reconstruct all past information the archive nodes keeps readily constructured, hence available faster. I was reading the Geth IceBerg 1.8 release ...