aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-06-25 22:12:53 +0800
committerMaran <maran.hidskes@gmail.com>2014-06-25 22:12:53 +0800
commit9654b809120d1cc3c53ffe268fe47869ef0dc0a8 (patch)
tree3c81bc1f9ca44d4d27bcee3e6c34d05614c6c3ce
parent1e965cb8f5c63d73a5aac1556a2638345ba2824c (diff)
downloaddexon-9654b809120d1cc3c53ffe268fe47869ef0dc0a8.tar
dexon-9654b809120d1cc3c53ffe268fe47869ef0dc0a8.tar.gz
dexon-9654b809120d1cc3c53ffe268fe47869ef0dc0a8.tar.bz2
dexon-9654b809120d1cc3c53ffe268fe47869ef0dc0a8.tar.lz
dexon-9654b809120d1cc3c53ffe268fe47869ef0dc0a8.tar.xz
dexon-9654b809120d1cc3c53ffe268fe47869ef0dc0a8.tar.zst
dexon-9654b809120d1cc3c53ffe268fe47869ef0dc0a8.zip
Implemented TX History for ethjs
-rw-r--r--ethereal/assets/ext/ethereum.js3
-rw-r--r--ethereal/assets/qml/webapp.qml6
2 files changed, 9 insertions, 0 deletions
diff --git a/ethereal/assets/ext/ethereum.js b/ethereal/assets/ext/ethereum.js
index c58fe24c2..de6fb0255 100644
--- a/ethereal/assets/ext/ethereum.js
+++ b/ethereal/assets/ext/ethereum.js
@@ -58,6 +58,9 @@ window.eth = {
getBalanceAt: function(address, cb) {
postData({call: "getBalance", args: [address]}, cb);
},
+ getTransactionsFor: function(address, cb) {
+ postData({call: "getTransactionsFor", args: [address]}, cb);
+ },
getSecretToAddress: function(sec, cb) {
postData({call: "getSecretToAddress", args: [sec]}, cb);
diff --git a/ethereal/assets/qml/webapp.qml b/ethereal/assets/qml/webapp.qml
index 4a5a1293a..63927f0eb 100644
--- a/ethereal/assets/qml/webapp.qml
+++ b/ethereal/assets/qml/webapp.qml
@@ -103,6 +103,12 @@ ApplicationWindow {
postData(data._seed,stateObject)
break
+ case "getTransactionsFor":
+ require(1);
+ var txs = eth.getTransactionsFor(data.args[0], true)
+ postData(data._seed, txs)
+
+ break
case "getBalance":
require(1);