Update blocks.js

This commit is contained in:
DJObleezy 2025-03-25 12:24:11 -07:00 committed by GitHub
parent 37f48c0c10
commit 44c3db8512
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -240,6 +240,13 @@ function updateLatestBlockStats(block) {
} else { } else {
$("#latest-pool").text("Unknown"); $("#latest-pool").text("Unknown");
} }
// Average Fee Rate
if (block.extras && block.extras.avgFeeRate) {
$("#latest-fee-rate").text(block.extras.avgFeeRate + " sat/vB");
} else {
$("#latest-fee-rate").text("N/A");
}
} }
// Function to display the blocks in the grid // Function to display the blocks in the grid