forked from cerc-io/plugeth
Implemented TX History for ethjs
This commit is contained in:
parent
1e965cb8f5
commit
9654b80912
@ -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);
|
||||||
|
@ -103,6 +103,12 @@ ApplicationWindow {
|
|||||||
postData(data._seed,stateObject)
|
postData(data._seed,stateObject)
|
||||||
|
|
||||||
break
|
break
|
||||||
|
case "getTransactionsFor":
|
||||||
|
require(1);
|
||||||
|
var txs = eth.getTransactionsFor(data.args[0], true)
|
||||||
|
postData(data._seed, txs)
|
||||||
|
|
||||||
|
break
|
||||||
case "getBalance":
|
case "getBalance":
|
||||||
require(1);
|
require(1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user