Skip to content

Commit

Permalink
Add tx input
Browse files Browse the repository at this point in the history
  • Loading branch information
223880 committed Sep 30, 2024
1 parent 34110c5 commit 8e7ba48
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/lending/esplora.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8e7ba48

Please sign in to comment.