pub struct BitcoinHelper { /* private fields */ }Expand description
Blocking helper for Bitcoin operations.
Thin wrapper around the async BitcoinHelper using [block_on],
following the same pattern as crate::client::rpc::BlockingArchRpcClient.
Implementations§
Source§impl BlockingBitcoinHelper
impl BlockingBitcoinHelper
Sourcepub fn send_utxo(&self, pubkey: Pubkey) -> Result<(String, u32), String>
pub fn send_utxo(&self, pubkey: Pubkey) -> Result<(String, u32), String>
Used to send a utxo to the taptweaked account address corresponding to the network’s joint pubkey
pub fn send_utxo_with_amount( &self, pubkey: Pubkey, amount_sats: u64, ) -> Result<(String, u32), String>
pub fn get_account_address_string( &self, pubkey: Pubkey, ) -> Result<String, String>
pub fn wait_until_titan_indexes_transaction( &self, txid: &Txid, ) -> Result<(), String>
Trait Implementations§
Source§impl Clone for BlockingBitcoinHelper
impl Clone for BlockingBitcoinHelper
Source§fn clone(&self) -> BlockingBitcoinHelper
fn clone(&self) -> BlockingBitcoinHelper
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BlockingBitcoinHelper
impl !RefUnwindSafe for BlockingBitcoinHelper
impl Send for BlockingBitcoinHelper
impl Sync for BlockingBitcoinHelper
impl Unpin for BlockingBitcoinHelper
impl UnsafeUnpin for BlockingBitcoinHelper
impl !UnwindSafe for BlockingBitcoinHelper
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