diff --git a/src/lending/esplora.rs b/src/lending/esplora.rs index 825b1e7..c2022a8 100644 --- a/src/lending/esplora.rs +++ b/src/lending/esplora.rs @@ -37,6 +37,21 @@ impl esplora_client::TX { self.txid.to_string() } pub fn get_tx_hash(&self) -> TX_HASH { + self.txid.to_string() + } + pub fn get_block_hash(&self) -> BLOCK_HASH { + self.blockhash.to_string() + } + pub fn get_block_height(&self) -> BLOCK_HEIGHT { + self.blockheight.to_string() + } + } + +impl esplora_client::TX_INPUT { + pub fn get_tx_hash(&self) -> TX_HASH { + self.txid.to_string() + } + pub fn get_tx_index(&self) -> TX_INDEX { self.txid.to_string() } pub fn get_block_hash(&self) -> BLOCK_HASH {