From 8e7ba481cb04d34751111e94030c7872c4823b98 Mon Sep 17 00:00:00 2001 From: 223880 Date: Mon, 30 Sep 2024 06:13:34 -0300 Subject: [PATCH] Add tx input --- src/lending/esplora.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 {