All Questions

7,061 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
2answers
338 views

Smart Contract firing send ether transaction that's not in the contract

I need some help with my smart contract, here's the smart contract code pragma solidity ^0.4.18; contract UserToken { mapping (bytes32 => uint8) public tokenBalance; bytes32[] public ...
4
votes
1answer
505 views

Contract transaction couldn't be found after 50 blocks in Kovan

When deploying contracts on the ledger I faced with issue Error encountered, bailing. Network state unknown. Review successful transactions manually. Error: Contract transaction couldn't be ...
4
votes
1answer
1k views

how to call smart contract function in C#.net core

protected async void Page_Load(object sender, EventArgs e) { var senderAddress = "0x605a1f8d368cbdd4d0a5cbad74f75c428660f17b"; var password = "zxcasdqwe123"; ...
4
votes
1answer
421 views

Solidity link to external library address - use Lib for uint256 breaks

I'm trying to link my contract to an external library by defining an interface contract that defines the library functions and the main contract that refers to the actual library address. My library ...
4
votes
1answer
312 views

Is there any documentation to visualize example of the original DAG graph that Ethereum generates?

Directed Acyclic Graph (DAG) is well explained here. On Vitalik Buterin's Dagger algorithm's link, the image does not show up. I assume it shows the example of 9 level DAG graph. In levels 1 ...
4
votes
1answer
638 views

How to make geth log RPC calls?

I want to see the logs of the JSON-RPC calls to geth (with all the details if possible). How can I do that? In this page, I have found a command line option: --vmodule value Per-module ...
4
votes
0answers
689 views

Truffle migrate Error Invalid number of arguments to Solidity function

Truffle 4.0.1 I've got a contract declared "is Pausable" (OpenZeppelin framework) and I want to pause it as part of the deployment logic. I'm getting an error, however, when invoking pause() Error: ...
4
votes
0answers
525 views

How can I retrieve transaction hashes using web3 batch requests?

When I send a transaction using Truffle's contract wrappers - or using plain web3 sendTransaction() - I get a tx hash back that I can use to confirm the tx has completed. While using batch requests (...
4
votes
2answers
102 views

Storing a lot of data in a contract efficiently

Do data types like arrays or maps get stored in the patricia tree (#1)where each element (in the map) has it's own path, and when you add a new element you reference the whole sub tree and add a new ...
4
votes
0answers
106 views

Autorefill isn't working on Improved Coin code

I've been trying to write a token contract with the autorefill function, but perhaps the code for the token example on the ethereum website is somewhat outdated, because it isn't working. Did anybody ...
4
votes
3answers
2k views

Correctly deploying contracts with web3 1.0 and testrpc (invalid opcode error)

I followed the following tutorial: https://medium.com/@mvmurthy/full-stack-hello-world-voting-ethereum-dapp-tutorial-part-1-40d2d0d807c2 Now this tutorial is not using the recent version of web3 but ...
4
votes
1answer
869 views

ethminer fails to allocate DAG buffer -only- when connecting to a pool

When I run ethminer -G it starts the miner as expected. It takes around 60 seconds to allocate the DAG, and then it starts pumping out hashes on the GPU (at a dismal 1MH/s but that's besides the point....
4
votes
1answer
198 views

How to use BTCRelay for my ICO to get funds in BTC?

I want my ICO get investment in BTC also ,When i browse over internet I came up with BTCRelay concept . I tried to read their docs but it make me confused .Anybody give me a simple way to use BTC ...
4
votes
1answer
403 views

How can I use swarm with metamask or parity node?

I want to use swarm, but I wan't to download the all blockchain data. Is it possible to use metamask or parity node instead?
4
votes
2answers
3k views

MetaMask transaction rejected

Why transactions are rejected in MetaMask after conforming it? When a transaction is carried out in metamask it first get approved. after sometime it shows rejected. metamask is showing something like ...
4
votes
1answer
384 views

How long does it take to “save artifacts” to Ropsten?

Migrating contracts with Truffle I get stuck at Saving artifacts... Sometimes for 10 minutes or more. I also get: Error: Transaction 0x123...123 wasn't processed in 240 seconds! Is it normal that ...
4
votes
1answer
785 views

Events not being detected in Nethereum

I have a function in one contract that looks like this: //Events event RequestReceived(bytes s); event WorldCreated(bytes32 indexed worldName, address indexed sender, address result ); ...
4
votes
1answer
422 views

Storing private data off-chain with a sharing feature upon request

My question is not very technical from an implementation point of view, but I am looking for advice to achieve a specific use case using blockchain tech. I would greatly appreciate any insights or ...
4
votes
0answers
225 views

how to get revert at the previous timestamp of evm in testrpc

I am testing my contracts so at some point i need to increase the timestamp of evm that i achieve through evm_timeIncrease but now i want to execute some functions on the basis of current timestamp ...
4
votes
0answers
595 views

How to update the Ethereum Wallet Solidity Compiler

I'm using the latest Ethereum Wallet version which is 0.9.0 and I want to update my latest Solidity compiler since it seems that the wallet is using this version 0.4.13+commit.0fb4cb1a.Emscripten....
4
votes
1answer
317 views

How do I get configuration variables (such as gasPrice) in a truffle test?

I learned from this answer that truffle configures gasPrice in truffle.js, defaulting to 100000000000. I'd like to use gasPrice in a test, without hardcoding the raw number. Is there any way to ...
4
votes
2answers
661 views

Importing a contract from another contract in NodeJS app

I'm using a function in my NodeJS app to deploy contracts. The user inputs the contract he wishes to deploy and the app deploys it. The structure of the app is . ├── app │   ├── models │   │   └── ...
4
votes
0answers
319 views

How can I use a Presale JSON file to keep my ETH long-term in cold storage and sell my ETC seperately?

I received Ether during the Pre-sale in June 2014 and received a JSON file and have the password. I have never tried to access these funds. I found out that I should have ETC & ETH due to the hard-...
4
votes
0answers
467 views

Managing multiple Ether addresses in one contract?

Although I have a background in Bitcoin (creating the WLOX exchange platform), I am completely new to Ethereum. I am trying to find a way to manage multiple accounts/addresses as a pool to (1) be ...
4
votes
4answers
2k views

Ethereum Wallet on Testnet to mine

I have installed the ethereum wallet on widows. But my account ether balance is 0.00 ether. Then I started mining from developer network(Test only). But it shows nothing, I could not get any ether ...
4
votes
1answer
634 views

How to send an ETH address from a webpage to a smart contract?

What's the best way to get an ETH address from a website form submission (php) passed to a smart contract in order that the smart contract can send some new minted Tokens to the ETH address collected ...
4
votes
0answers
293 views

Storing a truffle contract interface in version control

What I'm doing When I compile and deploy a contract using Truffle, I get a .json build artifact that contains information about where the contract is deployed on the network (its address). So far I ...
4
votes
0answers
266 views

Geth LES Client. Only synchronize the last 50 headers?

Using a LES client, is it possible to only synchronize only some of the last headers on first run ? I am not interested in the chain history. I understand the security implications of not validating ...
4
votes
0answers
1k views

flag provided but not defined: -rpc

I'm using Geth to set up a private ethereum network and this is the command: $ geth --identity "MyTestNode" --datadir "SomeDir" init genesis.json --rpc --rpcaddr "localhost" --rpcport "8000" --...
4
votes
2answers
241 views

After a successful geth fast sync, Mist began to sync all the db again

After 3 days of syncing with geth --fast, finally I got the last block synced I started Mist and it began syncing again from -3,800,xxx The DB folders were correctly set - I double checked them. Where ...
4
votes
1answer
4k views

UTC/json wallet file: deleted -> recovered -> corrupted. 0.1 ETH REWARD

--EDIT-- I have advanced in my research. The UTC/JSON file in question is a 491 byte file. There are 256 random characters in the file with each 16 possible characters. Like a 256-number long ...
4
votes
1answer
317 views

Why does geth -light start importing block headers from 3297471

I've been using geth to download the blockchain (on full) and one of the requirements for my research involves the use of light clients. I used 2 computers to download the blockchain on the -light ...
4
votes
2answers
829 views

Contract creation gas cost depends on code in library function?

I have a contract fooContract which is using a fooLib library, calling fooLib.foo(LibStruct storage param) The transaction cost to create fooContract seems to depend on the code in the fooLib.foo() ...
4
votes
1answer
382 views

Connecting to an ethereum node from meteor server side

I get the error TypeError: XMLHttpRequest is not a function when I try to connect to a node on the server side of my meteor application. The error is caused by meteor using the meteor HTTP package ...
4
votes
0answers
299 views

Contract execution fails with Web3 but works with Remix

I am dealing with a very simple smart contract: contract MyRegistry { struct MyEvent { string date; // yyyy/mm/dd string desc; // potentially long string uint count; // &...
4
votes
0answers
284 views

Why are there discrepancies between client message signatures?

I have been investigating message signing using an Ethereum account, and have become somewhat bemused by the different signatures that I receive from different clients and different libraries. I have ...
4
votes
0answers
8k views

Will mining Ethereum be profitable after Proof of Stake/ Proof of Authority?

What will actually happen when they move to Proof of Stake ? If I want to start mining with 8-10 rigs now would it be profitable if they move to Proof of State or POA ? In short...will I make money ...
4
votes
0answers
907 views

Historical hourly or minute prices (API or bulk)

Questions to find ETH or other cryptocurrency historical prices have been asked and answered here or there. But I'm looking for hourly prices, or even less, for every minute, and for at least the past ...
4
votes
1answer
363 views

Create new account over IPC

I want to create a new account over IPC so I have started private chain with the below command geth --networkid=5 --datadir DataDir --ipcapi "db,eth,net,web3,personal" --ipcpath "/Users/smartSense/....
4
votes
0answers
420 views

Event and/or watch does not work

I have a contract for a simple bidding scenario as below: pragma solidity ^0.4.9; /* Contract accepting biddings during 30 minutes */ contract SimpleBidding { address contractOwnersAccount; ...
4
votes
0answers
95 views

Testnet blockchain inconsistencies - geth diverged from original blockchain?

I'm using go-ethereum instance: Geth/v1.5.9-unstable-fa999861/linux/go1.7.4. I cloned it from github (commit: fa99986143fe3dec08cdffcff9185e3700719edd). On Feb, 6th I synchronized with testnet via ./...
4
votes
0answers
208 views

What is the correct value to report for input data in this context?

On this transaction: https://etherscan.io/tx/0xae2630cdfbd0ca5292d272343c35dc8094365f2ecdc5c262c5639e79683f74dc, the input data is parsed and displayed as 'fund'. This is both correct and incorrect. ...
4
votes
0answers
103 views

Wrong value returned from function

I've a simple but problematic problem. I read a value of a struct from a smart contract with a function like this: function getOwner(address _id) constant returns (bytes32) { uint pos = ownerID[...
4
votes
0answers
74 views

Will forthcoming ability to make transactions private hide gas usage and mining information?

I understand that people are working on allowing for more private transactions on the public Ethereum mainnet. This would involve hiding (at the very least) the from, to, value and probably input ...
4
votes
0answers
110 views

Querystring in Parity Dapp frontend

I'm playing with local Dapp for Parity. When I'm trying to use query string in Dapp, I can't get it with js: I see that iframe is used inside, but have no idea, how to add query string there. Is ...
4
votes
0answers
293 views

Gas cost for bigInt library

I am working on a big integer library in the online compiler. Currently having gas/computational time issues with the modulus function. I first implemented it using repeated subtraction: function ...
4
votes
0answers
111 views

Did the ripemd precompiled contract get deleted?

A bug "caused account 0000000000000000000000000000000000000003 to be deleted in block 2675119, even though the deletion should have been reverted due to an out of gas error." Source Did account 0..3 ...
4
votes
0answers
512 views

Switching to Ropsten on windows

I'm using geth on a linux VM, and Ethereum Wallet on my Windows. I had no problem at all switching to Ropsten on linux, but my Wallet refuses to change. I used geth --datadir /path/to/testnet/data ...
4
votes
1answer
171 views

Testrpc transactions are failing. How do I perform a transaction when Mist cannot estimate gas?

I am attempting to perform transactions and create contracts using EthereumJS Testrpc. I set it up by running the following: Terminal 1: testrpc Terminal 2: mist --rpc localhost:8545 Running both ...
4
votes
0answers
89 views

Ethereum Market Place Design

I want to model the following scenario - a small market place I have 2 nodes in my network - the seller and the buyer. I want to model the market place in that why - that the buyer node asks every ...

15 30 50 per page