pub async fn get_block_hash_from_bitcoin_height(
		&mut self,
		height: u32,
	) -> anyhow::Result<Uint256> {
		let res: Value = self
			.send_request(|| {
				self.http_client
					.get(self.block_by_bitcoin_height_url(height))
					.header("Accept", "application/json")
					.build()
					.unwrap()
			})
			.await?;

		let hash_str = res["hash"]
			.as_str()
			.unwrap_or_else(|| panic!("Could not get block hash: {:?}", res));
		let hash_bytes = hex::decode(hash_str.replace("0x", ""))?;

		Ok(Uint256::deserialize(&mut Cursor::new(hash_bytes))?)
	}
Get the block hash for a given Bitcoin height
romeo/src/stacks_client.rs