+
+
+
+ Blockhöhe
+
+
{{ $weather }} (um {{ \App\Support\Carbon::parse($changed)->asTime() }} Uhr aktualisiert - stündlich)
@@ -28,15 +49,21 @@
hostname: 'mempool.space'
});
const ws = websocket.initClient({
- options: ['stats'],
+ options: ['blocks', 'stats', 'mempool-blocks', 'live-2h-chart'],
});
ws.addEventListener('message', function incoming({data}) {
const res = JSON.parse(data.toString());
- that.fastestFee = res.fees.fastestFee;
- that.halfHourFee = res.fees.halfHourFee;
- that.hourFee = res.fees.hourFee;
- that.economyFee = res.fees.economyFee;
- that.minimumFee = res.fees.minimumFee;
+ if (res.block) {
+ console.log(res.block);
+ }
+ if (res.fees) {
+ that.fastestFee = res.fees.fastestFee;
+ that.halfHourFee = res.fees.halfHourFee;
+ that.hourFee = res.fees.hourFee;
+ that.economyFee = res.fees.economyFee;
+ that.minimumFee = res.fees.minimumFee;
+ console.log(res.fees);
+ }
});
};
init();
@@ -46,7 +73,8 @@