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.

2
votes
1answer
90 views

Ether balance on Metamask doesn't change after selling tokens

I create a smart contract successfully using Remix IDE , Metamask and Ropsten for testing. I want to sell some tokens using Sell function, so I specified the value "20" for Sell function ,my initial ...
0
votes
1answer
83 views

how to configure block explorer securely?

There are many block explorers that offer this service publicly, they are based on this explorer: github.com/etherparty/explorer I tried to use it, but to make it work (so my users could explore ...
0
votes
2answers
504 views

How to get list of Ethereum addresses for Airdrop?

I want to do Airdrop for my tokens and plan to distribute my tokens to 50,000 random Ethereum addresses. How do I get the 50k Ethereum addresses. How do the very well known Tokens airdrops manage to ...
0
votes
1answer
141 views

Converting int to default block parameter

I am using Infura and web3j to query the Ethereum blockchain. My aim is to get information about certain blocks so i'm using the function web3.eth.getBlockByNumber, however it gives me incompatible ...
1
vote
2answers
123 views

How to solve clique is not defined error?

I have going a PoA network, and everything looks like it works. But I cannot get clique to show up in geth. > clique ReferenceError: 'clique' is not defined at <anonymous>:1:1 Has ...
0
votes
1answer
125 views

I need some clarification about cloning Ethereum

I would like, just for learning purpose how to create a new crypto by cloning the Ethereum. I know how to make a clone of BTC and LTC, basically with that chains is enough modify some strings (such ...
0
votes
2answers
149 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 ...
0
votes
1answer
171 views

Private Ethereum Chain and Web3 js API

I've developed my own private chain for testnet using geth and CLique and i have some issues with web3.js environment. I starts my nodes using the console parameter in order to get to the Web3 console ...
0
votes
0answers
11 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....
1
vote
1answer
157 views

running eth-net-intelligence-api throws “[eth] =✘= Web3 connection attempt #0 failed”

I am trying to run eth-netstart in my machine. I run geth using this command line: geth --datadir innofactory1/ --syncmode 'full' --port 30312 --rpc --ws --wsorigins "*" --rpccorsdomain '"*"' --...
0
votes
1answer
120 views

geth: Remove command from console

I'm trying to implement my own version of a SmartContract-driven Discover protocol and in order to get it fully working, I want to remove the admin.addPeer() command from the console. I know there's ...
0
votes
1answer
288 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 ...
0
votes
0answers
17 views

How to import account of metamask in js?

ethWeb3.eth.getAccounts((error, accounts) => { console.log(accounts[0]); $('#currentAcntDisplayID').text(accounts[0]); ethWeb3.eth.defaultAccount = ...
0
votes
1answer
116 views

How do I start to write a function to debug Transaction?

I want to write a program that will do: for the given txhash debug TraceTransaction and return that What can i do in Go ? Do you have any materials, a tutorial or can you give me tips on how to ...
0
votes
0answers
12 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?
1
vote
1answer
159 views

Ethereum private chain not able to addPeer

I created a private chain with my friend with exactly the same genesis block and we wanted to connect through the admin.addPeer method. The problem is that for some reason they are able to connect to ...
0
votes
0answers
9 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 ...
0
votes
1answer
264 views

ETH wallet error

I want to download the ETH wallet and make light synchronization on my PC. I downloaded ethereum wallet, but after launch, the Checksum mismatch in downloaded node crashes! MD5: 308 ... Please install ...
1
vote
1answer
146 views

Not able to add ether in my private network's account

1. I have created a small ethereum private network. I opened launched the private network from terminal 1, launched the geth console from terminal 2, and opened mist browser in terminal 3. Once mist ...
2
votes
1answer
137 views

Invalid transaction signature on sending transaction

Hello guys I'm having a "Invalid transaction signature." error. Can't get pass this one. Am I missing something? client, err := ethclient.Dial("path/to/geth.ipc") if err != nil { return err } ks :...
0
votes
1answer
105 views

unable to write transactions on rinkeby from javascript file

I have written a contract which read and write data into blockchain using truffle. when i deployed that contract on rinkeby and called functions using web3.js the read functions works fine. but write ...
0
votes
1answer
101 views

Mist : Getting error Couldn't connect to node? See the logs for more:

First I started the private network and connected with 2 node . After I opened another terminal and used the command to open the mist: open -a /Applications/Mist.app --args --rpc /usr/local/Cellar/...
2
votes
3answers
2k views

Start Mining Operation = null (cannot mine private eth chain)

not sure if anyone has seen this before: I'm trying to mine a private chain. For whatever reason, after I was able to mine two blocks, I tried to mine the chain again and I get the following...(below)...
4
votes
1answer
502 views

Extremely slow geth mining and synchronization for private blockchain

I am constructing a very simple 2 nodes private Ethereum network to study the mining behaviour. The consensus algorithm is ethash. In order for the 2 nodes to discover each other, I also setup a ...
1
vote
1answer
121 views

Backup of Ethereum Node

I want to know how to take a backup of Private Ethereum Blockchain (chain data folder) while the chain is running. The problem is that suppose my chain height is at 1000 and it gets crashed or if I ...
0
votes
1answer
161 views

How to read previous blocks data?

I'm new to block chain technology. I'm trying to store and read blocks using testRPC along web3.js. I'm able to get the latest block data but not able to fetch previous blocks data. Please some one ...
1
vote
1answer
84 views

Need help with start mining(I am getting like this)

I am new to ethereum private blockchain System information: geth version:1.8.2 os&version:linux synopsis: when i tried to connect peers to my private blockchain it showing like WARN [03-20|11:...
0
votes
2answers
332 views

geth returns error with ipcapi option

When I launch geth with ipcapi: geth --testnet --rpc --rpcapi "eth,web3,txpool" --ipcapi "admin,db,eth,miner,net,shh,txpool,web3" geth returns me an error: flag provided but not defined: -ipcapi ...
0
votes
3answers
104 views

Crowdsale tokens count is not reducing even user gets the tokens to his account

I had created 100 million tokens and created a contract for crowdsale in test network If user sends a 1 ether using contract address i am able to receive 1 ether and send 1000 tokens to user who send ...
0
votes
0answers
8 views

How to programmatically check the type of Ethereum node/backend that I'm connected to using Go?

I'm aware that I can do this using CURL like so: curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":67}' https://the-node-ip-...
0
votes
0answers
8 views

Problems syncing small private net consisting of 2 PC miner nodes and 3 Raspberry Pi nodes

I've read countless posts referencing some form of "Synchronisation failed, dropping peer err='retrieved hash chain is invalid'" and of the few that had solutions, none of them worked for me. I ...
1
vote
1answer
142 views

Implementing Blockchain and Converting Web App to DApp

I have my web-application which is in Angular2 (Front end) and Rails (Back end-API), now I want to implement Blockchain to this Web application, so needs to make it DApp. Here while making the DApp, ...
0
votes
1answer
119 views

How to solve eth_getFilterChanges looping when deploying with truffle (parity)?

I am using truffle migrate and I get some kind of loop which just endlessly prints out eth_getFilterChanges. How can this be solved? I have used this truffle.js module.exports = { networks: { ...
0
votes
1answer
24 views

How to test the fuctionality of a Bittrex-related smart contract?

I've got my hands on a smart contract related to the Bittrex exchange. I would like to deploy this smart contract to test the functionality but I don't know how to call the functions properly. My ...
0
votes
0answers
14 views

How to instatinate and test Registry/Logic contracts with Geth?

I am having troubles getting below contracts tested with geth Storage Contract pragma solidity ^0.5.2 < 0.7.0; contract Storage { uint public val; } Registry Contract pragma solidity ^0.5....
1
vote
2answers
199 views

Uploading files on IPFS Infura

I am trying to make a dapp to upload files on IPFS Infura. I am using IpfsHttpClient in web browser by including the script <script src="https://unpkg.com/ipfs-http-client/dist/index.min.js">&...
0
votes
1answer
28 views

How to get notification right after account has received eth by geth?

My server stores many accounts. How do i know when and what account has received eth or i have to check them manually one by one by looping many address to check the balance? account := common....
1
vote
2answers
582 views

Geth Private Network Unable to Add Light Node

I have a private network setup with geth and a few machines (2 full nodes for mining and a light node). The three devices have the following IPs: MINER1 - 10.42.0.40 MINER2 - 10.42.0.250 LIGHT-NODE - ...
0
votes
1answer
174 views

No etherbase set and no accounts found as default

I am getting: "No etherbase set and no accounts found as default" when trying to sync my node using: geth --testnet --rpc --rpcapi db,eth,net,web3,personal --cache=1024 --rpcport 8545 --rpcaddr 127....
16
votes
4answers
8k views

Error “no key for given address or file” when unlocking coinbase account

Using json-rpc eth_unlockAccount() method I can unlock everyone of my node accounts except coinbase. When trying to unlock coinbase account, geth responds with the message: no key for given address ...
1
vote
1answer
155 views

Running a shell script in after a contract is deployed in a private blockchain network

Is there any way that i could run a shell script after a contract is deployed,since the terminal has geth Javascript console running,and there are some commands which are already in the shell script. ...
0
votes
1answer
79 views

“Normalized odd number of arguments by adding nil ” when unmarshalling data in geth client

I use json.marshal api encoding a struct and then send the marshalled data to geth. It's oK to unmarshal the data locally, but geth returns a error when unmarshalling it. I don't why, please give me ...
0
votes
1answer
95 views

Call contract function from another

I want to know what make the function below called successfully using web3js and throw " Error: VM Exception while processing transaction: revert" when I call it from another smart contract. function ...
0
votes
3answers
245 views

Unlocking Ethereum wallet using Geth JSON-RPC

When I use ETH with JSON-RPC I have error "message": "authentication needed: password or unlock» and If I manually unlock I have other error "message": "insufficient funds for gas * price + value" Any ...
1
vote
1answer
28 views

Static difficulty in 1.8.27 for local network

I am having trouble getting geth 1.8.27 to have a static difficulty on a private network. I followed the instructions from here. But when I test it, the difficulty still increases. I tried again, ...
0
votes
1answer
94 views

Web3js can not touch smart contract, always return 0

web3js can not touch smart contract. var id = dragoncore.getGenesNum(); has no error, but always return back 0, never changed. -----------------------------web3js code ----------------------------- ...
0
votes
2answers
381 views

How to destroy a token or list of token from a another contract?

[Edit 14-03-2018] I want to create a contract A that can generate a random number of Token A and another contract B that receive and destroy one or many of this token to generate a new Token B. It's ...
6
votes
5answers
8k views

How do I change/move the .ethash (DAG) directory to a different location?

When mining, the ~/.ethash folder is quickly fielded. This is annoying as my home directory is on a SSD with no large empty space. Furthermore, mining is writing/reading a lot on the SSD, which is not ...
1
vote
1answer
38 views

Solidity Error Address / Address Payable

I'm currently learning solidity programming to create a basic smart contract based on a 2018 tutorial where solidity was using version 4. I'm currently using truffle v5.0.21. I understand that there ...
0
votes
2answers
87 views

Can i make all the functions in my smart contract as constant?

What if i make a smart contract that does modify the state, but the all its functions are constant.(it will still compile) It means that i can use my smart contract for free without paying for the gas....