blob: 8222c848d7632629e0247e9a9dcc99ec319f770a (
plain) (
tree)
|
|
function HandleMessage(data) {
var message;
try { message = JSON.parse(data) } catch(e) {};
if(message) {
switch(message.type) {
case "coinbase":
return eth.coinBase();
case "block":
return eth.blockByNumber(0);
}
}
}
|