Skip to main content

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
5 votes
2 answers
4k views

How do I print my account balances and TheDAO tokens from geth

Is there a convenient script to print out my account balances and TheDAO tokens from the go-ethereum client geth?
BokkyPooBah's user avatar
  • 40.3k
2 votes
1 answer
640 views

Are there any alternatives for Meteor JS to build DApps?

Do you have to use Meteor for building Dapps? Are there any alternatives for Meteor JS to build DApps? Is it maybe even possible to build distributed applications for Ethereum without utilizing ...
q9f's user avatar
  • 32.9k
4 votes
3 answers
1k views

Iterating through an array in JS and simple promises (web3/pudding)

This might be more to do with my lack of understanding some JS basics however it's in ethereum/web3 context so here it goes. I have a public array posts in my contract and a global variable in JS of ...
md2312's user avatar
  • 193
0 votes
1 answer
339 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" ...
Kizito's user avatar
  • 779
6 votes
2 answers
1k 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 ? ...
jayD's user avatar
  • 2,472
3 votes
2 answers
319 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 ...
Clovis's user avatar
  • 881
9 votes
1 answer
459 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 ...
Karl Floersch's user avatar
29 votes
3 answers
13k 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 ...
Jehan's user avatar
  • 783
8 votes
1 answer
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 ...
manidos's user avatar
  • 4,298
96 votes
12 answers
51k views

Common useful JavaScript snippets for geth

In Geth you can loadscript any javascript 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(&...
7 votes
1 answer
171 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.
Walt D's user avatar
  • 391
2 votes
0 answers
83 views

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

Given an address, how do you generate its identicon using javascript?
Fernando Tiberti's user avatar
2 votes
1 answer
619 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 ...
samurai jack's user avatar
  • 1,125
11 votes
1 answer
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 ...
yanik's user avatar
  • 473
35 votes
2 answers
20k 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 ...
q9f's user avatar
  • 32.9k
1 vote
1 answer
734 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-...
no89key's user avatar
  • 23
2 votes
1 answer
221 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 ...
pd176's user avatar
  • 439
5 votes
2 answers
1k 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 ...
Paul S's user avatar
  • 4,281
47 votes
6 answers
43k 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 ...
Paul S's user avatar
  • 4,281
7 votes
1 answer
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?
eth's user avatar
  • 86k
6 votes
3 answers
4k 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:...
pd176's user avatar
  • 439
5 votes
1 answer
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 ...
pd176's user avatar
  • 439
6 votes
1 answer
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?
MaiaVictor's user avatar
  • 3,177
7 votes
1 answer
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.
HodlDwon's user avatar
  • 927

1
25 26 27 28
29