@@ -28,8 +28,9 @@ use bitcoin::hex::{DisplayHex, FromHex};
2828use bitcoin:: { Address , Block , BlockHash , MerkleBlock , Script , Transaction , Txid } ;
2929
3030use crate :: {
31- AddressStats , BlockStatus , BlockSummary , Builder , Error , MerkleProof , OutputSpendStatus ,
32- OutputStatus , ScriptHashStats , Tx , TxStatus , Utxo , BASE_BACKOFF_MILLIS , RETRYABLE_ERROR_CODES ,
31+ AddressStats , BlockInformation , BlockStatus , BlockSummary , Builder , Error , MerkleProof ,
32+ OutputSpendStatus , OutputStatus , ScriptHashStats , Tx , TxStatus , Utxo , BASE_BACKOFF_MILLIS ,
33+ RETRYABLE_ERROR_CODES ,
3334} ;
3435
3536#[ derive( Debug , Clone ) ]
@@ -389,6 +390,13 @@ impl BlockingClient {
389390 self . get_response_json ( & path)
390391 }
391392
393+ /// Get a summary about a [`Block`], given it's [`BlockHash`].
394+ pub fn get_block ( & self , blockhash : & BlockHash ) -> Result < BlockInformation , Error > {
395+ let path = format ! ( "/block/{blockhash}" ) ;
396+
397+ self . get_response_json ( & path)
398+ }
399+
392400 /// Gets some recent block summaries starting at the tip or at `height` if
393401 /// provided.
394402 ///
0 commit comments