diff --git a/src/async.rs b/src/async.rs index 4da2fec..aa60a2f 100644 --- a/src/async.rs +++ b/src/async.rs @@ -132,16 +132,6 @@ impl AsyncClient { } } - #[deprecated( - since = "0.2.0", - note = "Deprecated to improve alignment with Esplora API. Users should use `get_block_hash` and `get_header_by_hash` methods directly." - )] - /// Get a [`BlockHeader`] given a particular block height. - pub async fn get_header(&self, block_height: u32) -> Result { - let block_hash = self.get_block_hash(block_height).await?; - self.get_header_by_hash(&block_hash).await - } - /// Get a [`BlockHeader`] given a particular block hash. pub async fn get_header_by_hash(&self, block_hash: &BlockHash) -> Result { let resp = self diff --git a/src/blocking.rs b/src/blocking.rs index 9ed2683..71ee518 100644 --- a/src/blocking.rs +++ b/src/blocking.rs @@ -201,16 +201,6 @@ impl BlockingClient { self.get_response_json(&format!("/tx/{}/status", txid)) } - /// Get a [`BlockHeader`] given a particular block height. - #[deprecated( - since = "0.2.0", - note = "Deprecated to improve alignment with Esplora API. Users should use `get_block_hash` and `get_header_by_hash` methods directly." - )] - pub fn get_header(&self, block_height: u32) -> Result { - let block_hash = self.get_block_hash(block_height)?; - self.get_header_by_hash(&block_hash) - } - /// Get a [`BlockHeader`] given a particular block hash. pub fn get_header_by_hash(&self, block_hash: &BlockHash) -> Result { self.get_response_hex(&format!("/block/{}/header", block_hash))