Questions tagged [javascript]

JavaScript is a dynamic, weakly-typed language used for client-side as well as server-side scripting.

Filter by
Sorted by
Tagged with
0
votes
1answer
325 views

Uncaught Reference Javascript Error when submitting data via html to contract

I created a contract (Freight) using the "ratings" tutorial template. The Freight contract is meant to store values entered in the html page (input.html) and submitted. Just like the "ratings" ...
5
votes
2answers
691 views

Make data from smartcontracts / events only visible for certain address/users

I Have an use case where i need : 1- My data not to be visible to the public. 2- To be able to revoke my clients/users rights to view said data from my smart contract. As anyone done that before ? ...
3
votes
2answers
235 views

Where to find the private key for my contract in blockapps?

I am trying to use blockapps-js to invoke functions on my smart contract deployed in blockapps. Since I need the private key for it, I am looking at the app/users/admin/.json file. Problem is I cannot ...
9
votes
1answer
259 views

Why is web3 being proposed as a global variable in Mist? What's the reasoning?

I have heard that web3 is supposed to have global scope, something similar to document or window. What is the reasoning behind this architectural choice? Is this still an underlying assumption? In ...
25
votes
3answers
10k views

How does Solidity's sha3 / keccak256 hash uints?

This is not a question about the issue with Ethereum using a non-standard sha3. I have found the right JS hashing library, and am able to get matching hashes in JS and Solidity on byte strings. What I ...
8
votes
1answer
3k views

How to connect NodeJS to the Ethereum network?

I have Mist wallet running on Windows 8. I want to connect my NodeJS applcation to the Ethereum network. I have no idea where to start. Could you point me to the direction I should be looking at? Are ...
84
votes
12answers
33k views

Common useful JavaScript snippets for geth

In geth you can loadscript any .js file. I discovered this one on the wiki which I like a lot: function checkAllBalances() { var i =0; eth.accounts.forEach( function(e){ console.log(" eth....
7
votes
1answer
151 views

How to connect AugurProject's ethrpc to a local testnet

I have GETH running a test network, and now I'd like to get AugurProject's ETHRPC to connect. I can't find any documentation on ETHRPC.
2
votes
0answers
73 views

How do you generate an address identicon using javascript? [duplicate]

Given an address, how do you generate its identicon using javascript?
2
votes
1answer
530 views

Embark + IPFS storage error: Cannot find module 'fs'

I am using the Embark framework demo code and trying to include IPFS storage (not deployment) functionalities to the project. I get an error message when I try to execute the following code in the ...
11
votes
1answer
3k views

Can I unlock an account using JSON-RPC?

The only way I can work with ETH is through --rpc mode. Normally I would prefer to use the Python interface. But I found myself in a situation where the RPC is very limited. For example, I can't ...
35
votes
2answers
19k views

How does Lisk differ from Ethereum?

Lisk is going to be a full stack DApp development framework for building and distributing decentralized applications. It's currently in the crowdfunding stage but got also added to Microsofts ...
1
vote
1answer
608 views

Is there something like bitcore for Ethereum?

In Bitcoin there is a library named Bitcore. It helps abstract away a number of details, including using direct RPC commands. Is there something like Bitcore for Ethereum? Or do I need to use JSON-...
2
votes
1answer
206 views

Option to give passphrase via web interface

I am trying to run the sample web3.js code from here https://github.com/ethereum/web3.js/blob/master/example/event_inc.html I am running the geth node on testnet. However, when I try to create the ...
5
votes
2answers
569 views

How do I fix Javascript stack overflows when compiling very large file with solc?

If I compile a very large file with solc the stack overflows. This will happen most commonly in node because the default stack is only 984kbytes, which is strangely what you would expect for a 1990s ...
36
votes
6answers
17k views

How do I parse the transaction receipt log with web3.js?

The event parser in web3 provides a nice parsing functionality for events, and I use it for logging all events to a file, but it's very difficult to use for looking at individual events for a ...
6
votes
1answer
2k views

Is there a Javascript client for Ethereum, like Geth?

Ethereum's Github has ethereumjs-lib. It appears to be a collection of modules, but is it also a client like Geth? If so, how can one run this Javascript client?
6
votes
3answers
3k views

web3 methods not implemented

I'm running a geth node on the testnet and trying to run web3.js method from my node server code. Here's my code var Web3 = require("web3"); var web3 = new Web3(new Web3.providers.HttpProvider('http:...
5
votes
1answer
2k views

Making web3.js work from node server code

I'm running a geth node on the testnet and trying to run web3.js method from my node server code. var coinbase = web3.eth.coinbase; console.log(coinbase); However, I'm getting a provider not set or ...
6
votes
1answer
1k views

Is there any lightweight JS library that generates Ethereum addresses from 256-bit private keys?

I have a 256-bit private key and I want to get its public address without having to install Geth (which is quite heavy) on the machine. Is there any small JS lib that does that?
7
votes
1answer
5k views

JavaScript Code Required to Generate an Ethereum Address?

I am aware of several tools and websites that generate addresses for you, but I'm looking for an actual JavaScript code snippet to demonstrate the steps plainly.

1
10 11 12 13
14