Official Go implementation of the Ethereum protocol
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<!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)
|
|
|
|
});
|
|
|
|
|
|
|
|
eth.getEachStorageAt("9ef0f0d81e040012600b0c1abdef7c48f720f88a", function(a, b) {
|
|
|
|
console.log(a,b)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|