From 9654b809120d1cc3c53ffe268fe47869ef0dc0a8 Mon Sep 17 00:00:00 2001 From: Maran Date: Wed, 25 Jun 2014 16:12:53 +0200 Subject: [PATCH] Implemented TX History for ethjs --- ethereal/assets/ext/ethereum.js | 3 +++ ethereal/assets/qml/webapp.qml | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/ethereal/assets/ext/ethereum.js b/ethereal/assets/ext/ethereum.js index c58fe24c24..de6fb02553 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 4a5a1293a3..63927f0ebe 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);