aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/ethtest/example/node-app.js
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-04 21:39:15 +0800
committerobscuren <geffobscura@gmail.com>2015-01-04 21:39:15 +0800
commit987119cd4adcdbc7ebfd0bbb027a0c9e2a7487e9 (patch)
tree32ff13edca8c3d9b61b303f7d314291d0f216574 /cmd/ethtest/example/node-app.js
parent1b905675465d96227f1a8144fe592e76f646f559 (diff)
parent08b03afa4bb3a40d2faf6543bc884a8ece5be2a1 (diff)
downloaddexon-987119cd4adcdbc7ebfd0bbb027a0c9e2a7487e9.tar
dexon-987119cd4adcdbc7ebfd0bbb027a0c9e2a7487e9.tar.gz
dexon-987119cd4adcdbc7ebfd0bbb027a0c9e2a7487e9.tar.bz2
dexon-987119cd4adcdbc7ebfd0bbb027a0c9e2a7487e9.tar.lz
dexon-987119cd4adcdbc7ebfd0bbb027a0c9e2a7487e9.tar.xz
dexon-987119cd4adcdbc7ebfd0bbb027a0c9e2a7487e9.tar.zst
dexon-987119cd4adcdbc7ebfd0bbb027a0c9e2a7487e9.zip
Merge branch 'poc8' into docbranch
Diffstat (limited to 'cmd/ethtest/example/node-app.js')
-rw-r--r--cmd/ethtest/example/node-app.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/cmd/ethtest/example/node-app.js b/cmd/ethtest/example/node-app.js
deleted file mode 100644
index f63fa9115..000000000
--- a/cmd/ethtest/example/node-app.js
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/env node
-
-require('es6-promise').polyfill();
-
-var web3 = require("../index.js");
-
-web3.setProvider(new web3.providers.HttpRpcProvider('http://localhost:8080'));
-
-web3.eth.coinbase.then(function(result){
- console.log(result);
- return web3.eth.balanceAt(result);
-}).then(function(balance){
- console.log(web3.toDecimal(balance));
-}).catch(function(err){
- console.log(err);
-}); \ No newline at end of file