2014-08-15 01:24:14 +03:00
|
|
|
<!doctype>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Tests</title>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<button onclick="test();">Test me</button>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
function test() {
|
|
|
|
var filter = eth.watch({
|
|
|
|
latest: -1,
|
|
|
|
from: "e6716f9544a56c530d868e4bfbacb172315bdead",
|
|
|
|
});
|
|
|
|
|
|
|
|
filter.changed(function(messages) {
|
|
|
|
console.log("messages", messages)
|
|
|
|
})
|
|
|
|
|
|
|
|
filter.getMessages(function(messages) {
|
|
|
|
console.log("getMessages", messages)
|
|
|
|
});
|
|
|
|
|
2014-08-15 02:07:40 +03:00
|
|
|
eth.getEachStorageAt("9ef0f0d81e040012600b0c1abdef7c48f720f88a", function(a, b) {
|
|
|
|
console.log(a,b)
|
|
|
|
})
|
2014-08-15 14:16:07 +03:00
|
|
|
|
|
|
|
eth.getBlock("f70097659f329a09642a27f11338d9269de64f1d4485786e36bfc410832148cd", function(block) {
|
|
|
|
console.log(block)
|
|
|
|
})
|
2014-08-15 01:24:14 +03:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|