Questions tagged [ethereum]

Ethereum is a blockchain currency (like Bitcoin) with a public ledger. Questions should relate to programming. General questions about Ethereum should be asked on https://ethereum.stackexchange.com

is an open-source, public, blockchain-based distributed computing platform featuring smart contract (scripting) functionality. It provides a decentralized Turing-complete virtual machine, the Ethereum Virtual Machine (EVM), which can execute scripts using an international network of public nodes. Ethereum also provides a cryptocurrency token called , which can be transferred between accounts and used to compensate participant nodes for computations performed. Gas, an internal transaction pricing mechanism, is used to mitigate spam and allocate resources on the network.

was proposed in late 2013 by Vitalik Buterin, a cryptocurrency researcher and programmer.

The official website of is Ethereum.org

6757 questions
2
votes
1 answer

Ganache hash doesn't match Web3j response with error `TxHashMismatchException`

When trying to run any transaction using Web3j on Ganache it fails with the exception: TxHashMismatchException. It seems that something has changed on Ganache that is breaking the interoperability.
Adrian Lopez
  • 1,776
  • 1
  • 17
  • 35
2
votes
1 answer

Istanbul-tools installation error: github.com/ethereum/go-ethereum/crypto/bn256/cloudflare.gfpMul: relocation target runtime.support_bmi2 not defined

I am trying to install Istanbul-tools to run an IBFT ethereum network as shown in this tutorial here https://medium.com/getamis/istanbul-bft-ibft-c2758b7fe6ff I am installing istanbul-tools via their makefile using go build -v -o…
Yanzal
  • 113
  • 1
  • 8
2
votes
4 answers

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

Update Since I'm not able to achieve this using the approach in this question, I created my own library to do the same thing (link). It doesn't rely on go-ethereum package but use the normal net/http package to do JSON RPC request. I still love to…
Zulhilmi Zainudin
  • 9,017
  • 12
  • 62
  • 98
2
votes
1 answer

Is it possible to generate mnemonic code from privatekey from web3j and bitcoin sdk

I am an Android developer and I try to import a wallet from its private key, everything goes well but there will no mnemonic code for this wallet, and I know private key comes from mnemonic code too. I only just wonder isn't possible to generate…
ijustyce
  • 328
  • 1
  • 3
  • 13
2
votes
1 answer

Library function not found in Solidity Smart Contract

I have created a project for a DApp in Solidity language for Ethereum with this structure: ...ReinsuranceProject .....contract .......Reinsure.sol .....library .......Strings.sol In the contract Reinsure.sol I have imported Strings.sol which is a…
Angie
  • 21
  • 6
2
votes
2 answers

How to pass array in react js inside render

I'm developing a IPFS-Ethereum app using React JS where I will upload a XML file and parse it. I got a problem displaying parsed data as an array in the table. It is showing only last element in the array. This is the code used for parsing, in…
Hemanth Kalyan A
  • 127
  • 1
  • 1
  • 15
2
votes
2 answers

Ethereum wallet shows it has ethers but geth does not show the balance

I am starting to learn ethereum. I have downloaded the Ethereum Wallet, created two accounts and using Rinkeby faucet I got 3 ethers in one of the account. I can see the balance in my wallet. I then ran geth --testnet --datadir d:\data and it…
unni
  • 63
  • 8
2
votes
1 answer

How to validate an Ethereum address using Joi

A valid ethereum address is "0x" + 40 hex characters. What would be the Joi definition to validate that ?
Kris Randall
  • 686
  • 1
  • 7
  • 12
2
votes
2 answers

How is the source code protected from being tampered with in a blockchain?

class Block{ constructor(timestamp, transactions, previousHash = ''){ this.timestamp = timestamp; this.transactions = transactions; this.previousHash = previousHash; this.hash = this.calculateHash(); …
2
votes
2 answers

Does metamask is necessary for dapp?

Does metamask is necessary for communicating with DApps in ethereum network? if no then what is the another way to interact with the Smart Contract ?
aac
  • 574
  • 2
  • 6
  • 18
2
votes
1 answer

What gonna happen if two geth clients( in two different machines) running with the same nodekey file (node id) within the Mainnet?

If someone copies the nodekey to another machine, and runs the geth with that key. Test it, just don't quite understand the underlying mech.
Zalberth
  • 308
  • 1
  • 2
  • 12
2
votes
0 answers

PoA Clique Ethereum Block Gas Limit relevance

I am running some tests on a private Ethereum network with the Clique consensus engine (Proof of Authority). I came across issues with the amount of transactions processed per block (or per second - as they can be exchangeable on the Clique…
epm-bt
  • 71
  • 4
2
votes
1 answer

solidity contract state variable value show strange when invoke from external contrace

Description Contract A has a state variable owner , which initialized well to msg.sender. But this owner variable became 0x0 when invoked from another contract function which take address of contract A's instance and convert to A…
2
votes
0 answers

VCR record HTTP interactions with webmock create .yml without values

I am doing HTTP interaction with Ganache - ethereum testnet. Ganache url : http://127.0.0.1:7545. I connect to its by ethereum.rb gem, which using I think Net::HTTP lib: class from ethereum.rb gem which establishes connect to ethereum…
lomey
  • 21
  • 2
2
votes
1 answer

Solidity and Web3 sha3() methods return something else

In my contract, I have a function that returns the sha3 hash of a certain set of values. While running some tests I found that the value returned from this function differs from the hash value generated by web3.utils.sha3() (with identical…
Karim Stekelenburg
  • 633
  • 12
  • 26