From 44c3db85128b79a0e3907a722d42d23d46483740 Mon Sep 17 00:00:00 2001 From: DJObleezy <156115770+Djobleezy@users.noreply.github.com> Date: Tue, 25 Mar 2025 12:24:11 -0700 Subject: [PATCH] Update blocks.js --- static/js/blocks.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/static/js/blocks.js b/static/js/blocks.js index 8e967e6..8f23240 100644 --- a/static/js/blocks.js +++ b/static/js/blocks.js @@ -240,6 +240,13 @@ function updateLatestBlockStats(block) { } else { $("#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