good morning!!!!

Skip to content
Snippets Groups Projects
Commit 9654b809 authored by Maran Hidskes's avatar Maran Hidskes
Browse files

Implemented TX History for ethjs

parent 1e965cb8
No related branches found
No related tags found
No related merge requests found
...@@ -58,6 +58,9 @@ window.eth = { ...@@ -58,6 +58,9 @@ window.eth = {
getBalanceAt: function(address, cb) { getBalanceAt: function(address, cb) {
postData({call: "getBalance", args: [address]}, cb); postData({call: "getBalance", args: [address]}, cb);
}, },
getTransactionsFor: function(address, cb) {
postData({call: "getTransactionsFor", args: [address]}, cb);
},
getSecretToAddress: function(sec, cb) { getSecretToAddress: function(sec, cb) {
postData({call: "getSecretToAddress", args: [sec]}, cb); postData({call: "getSecretToAddress", args: [sec]}, cb);
......
...@@ -102,6 +102,12 @@ ApplicationWindow { ...@@ -102,6 +102,12 @@ ApplicationWindow {
var stateObject = eth.getStateObject(data.args[0]).stateKeyVal(true) var stateObject = eth.getStateObject(data.args[0]).stateKeyVal(true)
postData(data._seed,stateObject) postData(data._seed,stateObject)
break
case "getTransactionsFor":
require(1);
var txs = eth.getTransactionsFor(data.args[0], true)
postData(data._seed, txs)
break break
case "getBalance": case "getBalance":
require(1); require(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment