pub fn retrieve_tx_hex<T: ?Sized, C, K>(
	wallet: &mut T,
	parent_key_id: &Identifier,
	tx_id: u32,
) -> Result<(bool, Option<String>), Error>
where
	T: WalletBackend<C, K>,
	C: NodeClient,
	K: Keychain,
{
	let tx_vec = updater::retrieve_txs(wallet, Some(tx_id), None, Some(parent_key_id))?;
	if tx_vec.len() != 1 {
		return Err(ErrorKind::TransactionDoesntExist(tx_id.to_string()))?;
	}
	let tx = tx_vec[0].clone();
	Ok((tx.confirmed, tx.tx_hex))
}
/// Retrieve the associated stored finalised hex Transaction for a given transaction Id
/// as well as whether it's been confirmed
Retrieve the associated stored finalised hex Transaction for a given transaction Id
as well as whether it's been confirmed
Retrieve the associated stored finalised hex Transaction for a given transaction Id as well as whether it ' s been confirmed
pub fn retrieve_tx_hex<T: ?Sized, C, K>(
	wallet: &mut T,
	parent_key_id: &Identifier,
	tx_id: u32,
) -> Result<(bool, Option<String>), Error>
where
	T: WalletBackend<C, K>,
	C: NodeClient,
	K: Keychain,
{
	let tx_vec = updater::retrieve_txs(wallet, Some(tx_id), None, Some(parent_key_id))?;
	if tx_vec.len() != 1 {
		return Err(ErrorKind::TransactionDoesntExist(tx_id.to_string()))?;
	}
	let tx = tx_vec[0].clone();
	Ok((tx.confirmed, tx.tx_hex))
}
pub fn retrieve_tx_hex < T : ? Sized , C , K > ( wallet : & mut T , parent_key_id : & Identifier , tx_id : u32 , ) -> Result < ( bool , Option < String > ) , Error > where T : WalletBackend < C , K > , C : NodeClient , K : Keychain , { let tx_vec = updater :: retrieve_txs ( wallet , Some ( tx_id ) , None , Some ( parent_key_id ) ) ? ; if tx_vec . len ( ) != 1 { return Err ( ErrorKind :: TransactionDoesntExist ( tx_id . to_string ( ) ) ) ? ; } let tx = tx_vec [ 0 ] . clone ( ) ; Ok ( ( tx . confirmed , tx . tx_hex ) ) }
Retrieve the associated stored finalised hex Transaction for a given transaction Id
as well as whether it's been confirmed
Retrieve the associated stored finalised hex Transaction for a given transaction Id as well as whether it ' s been confirmed
wallet
&mut T
parent_key_id
&Identifier
tx_id
u32