pub struct TransactionParser { /* private fields */ }Expand description
Transaction parser service
Implementations§
Source§impl TransactionParser
impl TransactionParser
Sourcepub fn new(client: Arc<BitcoinClient>) -> Self
pub fn new(client: Arc<BitcoinClient>) -> Self
Create a new transaction parser
Sourcepub fn parse_transaction(&self, txid: &Txid) -> Result<ParsedTransaction>
pub fn parse_transaction(&self, txid: &Txid) -> Result<ParsedTransaction>
Parse a transaction by its ID
Sourcepub fn get_sender_info(&self, txid: &Txid) -> Result<SenderInfo>
pub fn get_sender_info(&self, txid: &Txid) -> Result<SenderInfo>
Get the sender information from a transaction
Sourcepub fn get_refund_address(&self, txid: &Txid) -> Result<Option<String>>
pub fn get_refund_address(&self, txid: &Txid) -> Result<Option<String>>
Extract the most likely sender address for refund purposes
Sourcepub fn analyze_transaction(&self, txid: &Txid) -> Result<TransactionAnalysis>
pub fn analyze_transaction(&self, txid: &Txid) -> Result<TransactionAnalysis>
Analyze a transaction for potential issues
Auto Trait Implementations§
impl Freeze for TransactionParser
impl RefUnwindSafe for TransactionParser
impl Send for TransactionParser
impl Sync for TransactionParser
impl Unpin for TransactionParser
impl UnwindSafe for TransactionParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more