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
2 answers

web3.eth.sendSignedTransaction() always return "Returned error: nonce too low"

I used web3@1.00 in node.js to interact with private blockchain. And I write the code according to the official documents of web3@1.00. var Web3 = require('web3'); var Tx = require('ethereumjs-tx'); var web3 = new…
Wenkai Zheng
  • 23
  • 1
  • 3
2
votes
0 answers

Trouble funding Solidity Contract with Web3

Hey folks im having trouble funding my contract with web3. I have a very simple payable function in the contract which is just there to accept money. function makePayment() public payable returns (bool) { return true; } For my frontend I have…
benjamin852
  • 509
  • 7
  • 19
2
votes
2 answers

Private Network : web3.eth.getAccounts() always send empty array

I am running a private Ethereum network. I do use https://aws.amazon.com/blockchain/templates/ The entire setup has been done. Things look setup properly on AWS. Now, I am trying to create the account and retrieve all those accounts. For that, I am…
Bhushankumar Lilapara
  • 780
  • 1
  • 13
  • 26
2
votes
0 answers

truffle migrate: calling method at the time of deployment

I am trying to initialize some contracts at the time of deployment using 'truffle migrate'. Basically I want to create some user roles when my contracts gets deployed as one time task. I am not sure how to do it, as during 'truffle migrate' when…
dagra
  • 589
  • 4
  • 20
2
votes
1 answer

Calling function in one contract from another contract in private blockchain

I have problem with smart contract development using solidity. i have two smart contracts such as Factory contract and Contract contract. Here is my code. Contract Factory { address[] newContracts; function createContract(uint num) { …
yoyo
  • 29
  • 2
2
votes
2 answers

What account controls Ethereum contract?

I am currently following this tutorial: https://medium.com/@mvmurthy/full-stack-hello-world-voting-ethereum-dapp-tutorial-part-2-30b3d335aa1f The way I deployed the contract was by using truffle migrate command which presumably automatically pushes…
user6396911
  • 123
  • 1
  • 6
2
votes
1 answer

getting Invalid signature while signing an order using 0x.js api

I've been trying to send a order to https://api.openrelay.xyz/v0 I've used ZeroEx api and @0xproject/connect to do this. And I'm using Ropstan Test Network. Here is the flow and code I've used: firstly I've created an order object: var order =…
Md. Mahbubul Haque
  • 800
  • 10
  • 18
2
votes
2 answers

What is the data option of eth_sendTransaction?

I am trying to send ERC20 token using JSON RPC. I am very new in this step and learning. I am using eth_sendTransaction function. What is "value" and "data" option in this case ? Please help
2
votes
1 answer

Ropsten network connection with web3.js(Version 1.0.0-beta.34)

I have an serious issue, I'm trying to figure out since two days but not succeeded. I want to connect testnet ropsten using web3.js which I guess I'm successful but issue is I have some balance on ropsten network but web3.js displaying only 0. You…
Muhammad Shahzad
  • 9,340
  • 21
  • 86
  • 130
2
votes
2 answers

Private Ethereum maxpeer

Steps I have created a private node and use --maxpeer of 1 (network id =1223123341) Add user's X node by admin.addPeer(enode of user X) successfully. (same network id and genesis) Base on my understanding that maxpeer will limit the node that can…
roytags
  • 99
  • 6
2
votes
1 answer

Runnig geth in ec2 gives error, panic: runtime error: invalid memory address or nil pointer dereference

What Iam trying to achieve is to run an ethereum/client-go on an aws EC2 instance and being able to access it from remote client side, for playing around with Rinkeby test network I am trying to run an geth docker image on ec2 instance on…
Siv
  • 1,026
  • 19
  • 29
2
votes
2 answers

Initialize a big fixed length array in Solidity

I'm building a game on ethereum as my first project and I'm facing with the storage and gas limits. I would like to store a storage smart contract on the blockchain to be queried after the deployment. I really need to initialize a fixed length array…
Xaler
  • 65
  • 2
  • 5
2
votes
2 answers

solidity payable constructor from contract

I have the following code, which is malfunctioning, to create a payable contract from another contract. pragma solidity ^0.4.16; Contract Factory { uint contractCount = 0; mapping(uint => MyContract) public myContracts; function…
3tbraden
  • 667
  • 1
  • 10
  • 21
2
votes
0 answers

HTTP Basic Authentication in Web3js

I have geth running in remote server and is protected using HTTP Basic Auth. I tried the below two methods. both don't work: let web3 = new Web3( new Web3.providers.HttpProvider( 'http://' + "username" + ':' +…
Narayan Prusty
  • 2,501
  • 3
  • 22
  • 41
2
votes
1 answer

How can we access RLP encoded signed raw transaction in solidity?

I know how to create a raw transaction for Ethereum because there are many articles like this. But I don't know how to access the raw transactions in Solidity. Msg object give us msg.data, msg.sender, msg.sig and msg.value. These parameters are…
Ko Ohhashi
  • 844
  • 1
  • 11
  • 23
1 2 3
99
100