aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/ext
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-05-13 20:43:08 +0800
committerMaran <maran.hidskes@gmail.com>2014-05-13 20:43:08 +0800
commit20ea78945e751a1ad11e2b2fc7c4224f4c46e108 (patch)
tree744dd114c51e056d8e4db2f1216c99e901f9586c /ethereal/assets/ext
parentdd60382fc3724ee9c9507cba8df9e6d6db1d5d51 (diff)
downloaddexon-20ea78945e751a1ad11e2b2fc7c4224f4c46e108.tar
dexon-20ea78945e751a1ad11e2b2fc7c4224f4c46e108.tar.gz
dexon-20ea78945e751a1ad11e2b2fc7c4224f4c46e108.tar.bz2
dexon-20ea78945e751a1ad11e2b2fc7c4224f4c46e108.tar.lz
dexon-20ea78945e751a1ad11e2b2fc7c4224f4c46e108.tar.xz
dexon-20ea78945e751a1ad11e2b2fc7c4224f4c46e108.tar.zst
dexon-20ea78945e751a1ad11e2b2fc7c4224f4c46e108.zip
Implemented new JS/EthPub methods
- getTxCountAt - getPeerCount - getIsMining - getIsListening - getCoinbase
Diffstat (limited to 'ethereal/assets/ext')
-rw-r--r--ethereal/assets/ext/ethereum.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/ethereal/assets/ext/ethereum.js b/ethereal/assets/ext/ethereum.js
index f565e58bd..d4eaf97fd 100644
--- a/ethereal/assets/ext/ethereum.js
+++ b/ethereal/assets/ext/ethereum.js
@@ -36,6 +36,21 @@ window.eth = {
postData({call: "getKey"}, cb);
},
+ getTxCountAt: function(address, cb) {
+ postData({call: "getTxCountAt", args: [address]}, cb);
+ },
+ getIsMining: function(cb){
+ postData({call: "getIsMining"}, cb)
+ },
+ getIsListening: function(cb){
+ postData({call: "getIsListening"}, cb)
+ },
+ getCoinBase: function(cb){
+ postData({call: "getCoinBase"}, cb);
+ },
+ getPeerCount: function(cb){
+ postData({call: "getPeerCount"}, cb);
+ },
getBalanceAt: function(address, cb) {
postData({call: "getBalance", args: [address]}, cb);
},
@@ -115,6 +130,8 @@ window.eth = {
}
}
},
+
+
}
window.eth._callbacks = {}
window.eth._onCallbacks = {}