for (height, hash) in blocks.iter().take(5) { let (inscriptions, _total_num) = index.get_highest_paying_inscriptions_in_block(*height, 8)?; featured_blocks.insert(*hash, inscriptions); } Ok(BlocksHtml::new(blocks, featured_blocks).page(page_config)) } async fn install_script() -> Redirect { Redirect::to("https://raw.githubusercontent.com/ordinals/ord/master/install.sh") } async fn block( Extension(page_config): Extension>, Extension(index): Extension>, Path(DeserializeFromStr(query)): Path>, accept_json: AcceptJson, ) -> ServerResult { let (block, height) = match query { BlockQuery::Height(height) => { let block = index .get_block_by_height(height)? .ok_or_not_found(|| format!("block {height}"))?; (block, height) } BlockQuery::Hash(hash) => { let info = index .block_header_info(hash)? .ok_or_not_found(|| format!("block {hash}"))?;