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

Can sawtooth be used as a permissionless blockchain?

I know large number of public blockchains are around but i realy love the flexibility that hyperledger sawtooth provides so is it a good idea to use sawtooth as a public permissionless blockchain? I can't use Ethereum because it is not feasible for…
2
votes
1 answer

truffle compile , truffle test or truffle migration does not show any console output or exception . It just do nothing

I am setting up truffle with my Ubuntu 18.04 LTS and VS Code, getting follwowing truffle quickstart However, the truffle compile or truffle migrate or truffle test does not work. Even it does not throw any exception. Anybody faced the similar…
2
votes
0 answers

Call a smart contract function using INFURA

I can not understand how I can prepare the transaction, sign it and then send it using INFURA. I expect to get something wrong with the NodeJS code I posted. Can anyone kindly help me solve this problem? Note: I am able to send the transaction on my…
shogitai
  • 1,823
  • 1
  • 23
  • 50
2
votes
2 answers

Unable to call web3.eth.accounts.create() without remote debugger on react native app

I am building an android wallet using react-native and trying to create an account using web3.eth.accounts.create() . This works with react-native remote debugger enabled. However, when I work the same code with the debugger off, it stops working.…
2
votes
1 answer

How to compile solidity using solc 0.5

compile.js : const path = require('path'); const solc = require('solc'); const fs = require('fs-extra'); const buildPath = path.resolve(__dirname, 'build'); fs.removeSync(buildPath); const campaignPath = path.resolve(__dirname, 'contracts',…
2
votes
2 answers

Get intial ether on Ethereum network set up using Azure Ethereum PoA solution template

I've a private Ethereum PoA network set up using the MS Azure Ethereum proof-of-authority consortium solution template . I can connect my metamask to it but I cannot deploy contracts on it as I do not have any ether. How do I get the initial ether…
2
votes
1 answer

Access a smart contract that is deployed on the Ropsten network from an App

I have written a few smart contracts and I have deployed them locally. I have written an js file, app.js, that uses these smart contracts and 'does stuff', and it all works wonderfully locally, with Ganache and Metamask. Next, my coworker deployed…
Hans
  • 23
  • 4
2
votes
0 answers

Metamask is not showing the ethereum address balance on local geth instance

Steps to reproduce: Start local geth node with following command: geth --rinkeby --rpc --rpcaddr "127.0.0.1" Connect metamask chrome extension to http://localhost:8545 Create a new ethereum account, ABC, on metamask New account is visible on…
2
votes
0 answers

Error: Returned values aren't valid, did it run Out of Gas? on selfdestruct()

the code works fine, cause i'm following an online crash course. my problem is when i enter selfdestruct() it says something about an error, that i am unsure of what. please have a look, and see what is the problem. here is the code on where the…
2
votes
1 answer

Decode Hex to String with Chinese characters in javascripts

I convert hex to string. I have hexstring: "0xe4b883e5bda9e7a59ee4bb99e9b1bc" and use this code: hex_to_ascii(str1){ var hex = str1.toString().substring(2, str1.length); var str = ''; for (var n = 0; n < hex.length; n += 2) { str +=…
TraN
  • 23
  • 1
  • 6
2
votes
1 answer

Objects are not valid as a React child when setState of an array at the end of a promise chain

I have a promise chain that creates an array. At the end of the chain, I want to copy that array to one of my state variables. However, I get "Objects are not valid as a React child" I've tried various ways to chain the promise so that the state…
BobbKitty729
  • 327
  • 1
  • 6
  • 13
2
votes
0 answers

Unable to make a token transfer

I'm trying to simply transfer tokens from one address to another on ropsten but I keep getting this error Returned error: The method eth_sendTransaction does not exist/is not available this is the code: const cacheAddress_ =…
Red
  • 115
  • 1
  • 5
2
votes
2 answers

Storing gas inside a contract

Is it possible to store gas that is not used inside a contract, so it can be used at a later time (presuming it is possible to require a certain amount of gas calling a function)? I am trying to write a contract that requires user input and does…
SomeDutchGuy
  • 2,249
  • 4
  • 16
  • 42
2
votes
3 answers

Solidity v^0.5.0 compiler error [invalid callback specified]

I'm trying to compile my contract but get this error: AssertionError [ERR_ASSERTION]: Invalid callback specified. One answer was to change the version of the compiler but my version is up to date (0.5.0). I'm actually trying to take an old code…
Torof
  • 227
  • 3
  • 13
2
votes
1 answer

Ethereum Blocksci parser tool

I need a blocksci parser for ethereum. I am using https://github.com/citp/BlockSci for bitcoin . Is any similar blocksci parsing tool for ethereum?.
Sammu Sundar
  • 556
  • 3
  • 9
  • 24