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.

2
votes
1answer
85 views

Can anyone explain what's the difference between mist/geth/parity in simple terms?

What's the difference between geth/mist/parity?
1
vote
1answer
80 views

What happens with transaction after the block fork?

Do I need to generate transaction again after fork? How many confirmations are minimal to be sure of the transaction?
1
vote
1answer
42 views

the balance in genesis file is it in ether or wei?

In genesis.json file I have this balance : "bd7a14e103ffa97ec5fd96d9975adb1b52756ef3": { "balance": "0x200000000000000000000000000000000000000000000000000000000000000" } the hex number ...
0
votes
1answer
54 views

what is the maximum size of an ethereum transaction? [duplicate]

I want ot know what is the maximum size of an ethereum transaction ? I have a DAPP that makes a 1Milion transactions per year, I want to describe the deployment requirements such as Storage, RAM etc ....
1
vote
1answer
38 views

How to set limit on erc20 token

I want to set limit on erc20 token that owner will not transfer after the set limit. Lets totallSupply =1000 tokens But transfer function could not be able to transfer more than 500 tokens. Please ...
2
votes
0answers
27 views

Information/documentation about get data access from smart contract [closed]

I have been reading about giving data access from a smart contract, but I could not find good and precise documentation/information about that. I would like to make a smart contract where a user gives ...
0
votes
1answer
23 views

is it possible to add whitelist of contract in self mainnet node?

I am working in a company write games on eth mainnet and maintenance a eth node(geth) not using infura.io. My boss require me our eth node just can deal with our contract, so is it possible to do it? ...
-1
votes
0answers
36 views

Web3.shh how to properly receive a message?

I would like to start using whisper, I've sent a message and have it's filter but I can't receive it. My filter is waiting for the message in infinite. Because in the function receiveMessage the ...
-1
votes
0answers
22 views

modify clique to sign with x % instead of 51%

I want to make a custom version of geth that modifies the consensus to a certain percent, let's say 66% of sealers must agree instead of 51%. tried to edit https://github.com/ethereum/go-ethereum/...
2
votes
1answer
32 views

Removing sealers from clique genesis

Running a private POA with clique. I know it is possible to add and remove signers using clique.propose(). However, If I lose access to one of the sealers defined in the genesis file is it possible ...
2
votes
1answer
45 views

How to convert string to type defined by an abi.Type for payload construction?

I am writing a CLI in Go that should faciliate users to be able to make contract function calls from it. This entails generating contract ABIs and providing input parameters to the function arguments ...
2
votes
1answer
28 views

Is it possible to check the Thrid party token ( USDT ) within my ERC223 contracts?

I want to check how many tokens are received in my contracts, so that I am able to allocate MY TOKENS to the TOKEN Sender. I tried several ways like approveAndCall, but its not working. I don't ...
1
vote
1answer
66 views

Some questions about ethereum swarm

I have read https://swarm-guide.readthedocs.io/en/latest/up-and-download.html. But it does not make sense. So I want to ask a few questions. After syncing geth and swarm, I uploaded the data to swarm....
1
vote
1answer
75 views

Creating wallets with Web3j

I generate a code to create wallets for a private chain made with ethereum. String password = unlockAccountParameter.getPass(); ECKeyPair keyPair = Keys.createEcKeyPair(); WalletFile ...
1
vote
0answers
39 views

What possibly could go wrong if I leave my private blockchain node 30303 port open to public? [duplicate]

I have the following setup: All the nodes inside my cluster are talking to each other via 30303 port. When I want to talk to them, I'm using a Geth light client via HTTP JSON RPC port 8545. Only the ...
0
votes
1answer
86 views

Create account with web3j

Im trying to create a account using the web3j library. But i can´t find the method that create accounts. My idea is to make this judgment but not in the Geth console, but yes in the Java application ...
1
vote
0answers
16 views

Techniques to count nodes [duplicate]

What are the different techniques to count nodes in ethereum? ethernodes.org has a count of nodes, how can we verify if that is true ? Are there any other techniques to do similar counting. Can you ...
-1
votes
0answers
40 views

Error while using websocket provider in web3 version 1.0.0-.beta.35 “not websocket protocol”

new web3(new web3.providers.WebsocketProvider('ws://localhost:8546')) I am getting the error like not websocket protocol
1
vote
1answer
45 views

Web3 sending TX times out after 280 seconds because network lag

When I submit a transaction via web3 and metamask, it will await 280 seconds before timing out and returning the transaction receipt. How can I catch this error and handle with it so that my app can ...
0
votes
1answer
62 views

Cloning geth and adding a POS consensus algorithm? [closed]

I am currently learning how to use geth, so far I was able to create a private POW and POA blockchain using one of its consensus types (Clique). I am wondering how feasible it would be to clone the ...
1
vote
1answer
42 views

ERC 721 card game

The general concept of ERC 721 is clear to me. My question is more about the contract deployment. I want to have 100 unique cards, So I thought of these two implementations: Having an initial supply(...
1
vote
1answer
30 views

Block Numbers Different

I have a Ropsten test node up and running. When I check the block height on etherscan.io, it's different from the block number on my node. How is this possible? Please help.
0
votes
1answer
30 views

Execution of sending transaction never ends [UPDATED]

I send a transaction with web3 1.0.0 from a script like: async function sending(deployed_contract) { await deployed_contract.methods.mymethod(1).send({from: account}) .on('...
0
votes
1answer
23 views

Private Variable [duplicate]

Question1: If I declare a private variable and put in personal information (if I did not create a getter function), does anyone have a way to see this information?
2
votes
0answers
19 views

Transactions are not mining for accounts created by Nethereum.Accounts.Account method but works for accounts created by web3.Personal.NewAccount

Transactions are not mining & in pending state for long time, for transactions with accounts created using Nethereum.Accounts.Account(privateKey). But mining works for accounts created using web3....
1
vote
1answer
66 views

What happens to a transaction after you clicked 'send' in Ethereum network?[Transaction life cycle at the EVM and P2P networking level]?

Ref: What happens when you type in an URL in the browser So in a web browser, it's kinda easy to reason the life cycle of an HTTP request, how it moves down the network stack, reach the server, get ...
2
votes
1answer
34 views

create multiple transactions between two accounts using SendTransactionAsync method nethereum

I am trying to create multiple transactions between two accounts using SendTransactionAsync method. But I am getting "replacement transaction underpriced" message. I found some links which says we ...
-1
votes
0answers
18 views

Transferring ERC20 token using approvals

I have a system where I want a buyer to be able to click on an advertisement (button) relating to a seller which initiates a transfer of tokens from SELLER to BUYER. As this is not a transfer from ...
1
vote
1answer
15 views

Accessing the Ethereum State Variables using web3js (Java Script)

I'm trying to run the below code to get the state variables using the getIdBytes method of the Smart Contract, and assign it to a java script array variable, but it doesn't seem to work. All I can ...
0
votes
1answer
19 views

Where Can Find the Ethereum source code on Proof Of Stake

Looking to find the implementation of Ethereum Proof of Stake Source Code on GitHub.
-1
votes
0answers
33 views

invalid address

I got this error invalid address contract.sol pragma experimental ABIEncoderV2; pragma solidity >0.4.24; contract Donativos { //Struct para las donaciones struct Donacion { string ...
1
vote
0answers
95 views

Puppeth: No ethstats server configured

Update This is an issue with Docker Compose >= 1.23.0 and I've raised this in the go-ethereum GitHub issues tracker. I'm following this guide to create my own private blockchain using PoA consensus. ...
0
votes
1answer
18 views

Error: The contract code couldn't be stored, please check your gas amount. Modified truffle.js not solving the problem

My smart contract could not deploy successfully, it contain 400 line. My truffle.js was configure to module.exports = { // See <http://truffleframework.com/docs/advanced/configuration> ...
0
votes
1answer
22 views

Mycontract.deploy().send() does not work

I am trying to deploy a contract with web3 1.0.0 like: myContract.deploy({}) .send({ from: '0x1234567890123456789012345678901234567891', gas: 1500000,z gasPrice: '20000000000000' }, ...
0
votes
1answer
14 views

if I use parity -d “path” to sync with a modify path.will i type -d again when next time open parity?

this is my first time to use parity, so if i just type parity -d \abc to sync in the folder named abc. and should I type it again the next time I use the rpc service with parity? if not, will it sync ...
-1
votes
0answers
23 views

Problem getting/subscribing events

I have the following function in my contract: function accept (uint x) public { ...Code... emit Time(now); } I send the next transaction calling a function in my contract and it ...
1
vote
1answer
11 views

Issues connecting Web3js to local testnet

I am trying to connect web3 to a testnet running locally. I am using the following code var web3 = new Web3(Web3.givenProvider || "ws://localhost:8546"); var account = '...
0
votes
1answer
15 views

is there any problem if i put GETH/PARITY and webserver in one server?

my website need to use something about ETH,so i have to setup a geth/parity rpc server. is there any problem if i set the geth/parity rpc in my webserver?
0
votes
0answers
9 views

Transaction initiation and response

When we initiates a transaction(let say by remix using injected web3), we will get response which includes hash of transaction as transaction id which helps to track the transaction. Before this, if ...
0
votes
0answers
13 views

Transaction broadcast mechanism

After initiation of transaction, transaction will remain in the transaction pool of all peered nodes. How Transaction reach to the transaction pool after receiving by the node? Do transaction ...
0
votes
1answer
74 views

How to correctly send RPC call using Golang to get smart-contract owner?

Update 12 November 2018 Someone shared a very close solution to what I was looking for here. Update 10 November 2018 Since I'm not able to achieve this using the approach in this question, I ...
2
votes
1answer
39 views

Handling the String msg returned from revert() in solidity

This is my sample contract.. pragma solidity ^ 0.4.15; contract Sample{ struct Info { address pubKey; //key bytes32 Id; } mapping(address => Info) public userMap; // ...
1
vote
1answer
34 views

Running enode and node

I am following this guide to set up Ethereum Proof of Authority on a VM in Azure. The guide says this about deploying a node, after setting up the enode. --port 30311 is the enode port for ...
0
votes
1answer
22 views

Creation of duplicate contract in solidity

I have a contract A and values stored in it. Now, if I want to create a contract B, which uses all the values stored in contract A and do some manipulations over there, how can I implement it? i.e., ...
0
votes
1answer
39 views

How to limit latest block in Geth

I need some test Ethereum blockchains for development purposes. I need only part of blocks synced for example, blochain synced from 0 to 10'000`th block, because for example Rinkeby synced in archive/...
1
vote
1answer
59 views

Creation of test network using ganache

Can we reuse the values stored in the ganache test network which is running in the local machine, even if the terminal which is running ganache test network is closed or what are the possible ways to ...
1
vote
1answer
45 views

ethers.Wallet.fromEncryptedWallet is not a function

I have the following code to create my own wallet: var ethers = require('ethers') let data = {"address":....} var password = "***"; var json = JSON.stringify(data); ethers.Wallet....
2
votes
1answer
17 views

How to change the crypto-currency that is used in paying for gas fees in a private network

I have deployed my own network of blockchain that is based on the ethereum network. I wanted to know if one could change the currency used to pay for the gas on the private network.
1
vote
0answers
56 views

Questions with Building a dapp using Quorum [closed]

I am working on a project to build a dapp for a trust system using Quorum, which needs a permissioned blockchain for data privacy. Only the admin, beneficiary, caregivers, case manager and authorized ...
0
votes
2answers
80 views

What is the best practice for a tax payment Smart Contract?

I have just been introduced to Ethereum Smart Contracts and I have a faculty-related project that implies the usage of them. The idea is to create a DApp which allows clients (persons) pay taxes (in ...