Implemented TX History for ethjs

pull/84/head
Maran 11 years ago
parent 1e965cb8f5
commit 9654b80912
  1. 3
      ethereal/assets/ext/ethereum.js
  2. 6
      ethereal/assets/qml/webapp.qml

@ -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);

@ -102,6 +102,12 @@ ApplicationWindow {
var stateObject = eth.getStateObject(data.args[0]).stateKeyVal(true)
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);

Loading…
Cancel
Save