pub struct LiquidOnchainWallet { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl OnchainWallet for LiquidOnchainWallet
impl OnchainWallet for LiquidOnchainWallet
Source§fn transactions<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<WalletTx>, PaymentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn transactions<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<WalletTx>, PaymentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all transactions in the wallet
Source§fn transactions_by_tx_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<HashMap<Txid, WalletTx>, PaymentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn transactions_by_tx_id<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<HashMap<Txid, WalletTx>, PaymentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all transactions in the wallet mapped by tx id
Source§fn build_tx<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
fee_rate_sats_per_kvb: Option<f32>,
recipient_address: &'life1 str,
asset_id: &'life2 str,
amount_sat: u64,
) -> Pin<Box<dyn Future<Output = Result<Transaction, PaymentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn build_tx<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
fee_rate_sats_per_kvb: Option<f32>,
recipient_address: &'life1 str,
asset_id: &'life2 str,
amount_sat: u64,
) -> Pin<Box<dyn Future<Output = Result<Transaction, PaymentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Build a transaction to send funds to a recipient
Source§fn next_unused_address<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Address, PaymentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn next_unused_address<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Address, PaymentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the next unused address in the wallet
Source§fn tip<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = u32> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn tip<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = u32> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the current tip of the blockchain the wallet is aware of
Source§fn fingerprint(&self) -> Result<String>
fn fingerprint(&self) -> Result<String>
Get the fingerprint of the wallet
Source§fn full_scan<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), PaymentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn full_scan<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), PaymentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Perform a full scan of the wallet
Source§fn build_drain_tx<'life0, 'life1, 'async_trait>(
&'life0 self,
fee_rate_sats_per_kvb: Option<f32>,
recipient_address: &'life1 str,
enforce_amount_sat: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<Transaction, PaymentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn build_drain_tx<'life0, 'life1, 'async_trait>(
&'life0 self,
fee_rate_sats_per_kvb: Option<f32>,
recipient_address: &'life1 str,
enforce_amount_sat: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<Transaction, PaymentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Builds a drain tx. Read more
Source§fn build_tx_or_drain_tx<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
fee_rate_sats_per_kvb: Option<f32>,
recipient_address: &'life1 str,
asset_id: &'life2 str,
amount_sat: u64,
) -> Pin<Box<dyn Future<Output = Result<Transaction, PaymentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn build_tx_or_drain_tx<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
fee_rate_sats_per_kvb: Option<f32>,
recipient_address: &'life1 str,
asset_id: &'life2 str,
amount_sat: u64,
) -> Pin<Box<dyn Future<Output = Result<Transaction, PaymentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Build a transaction to send funds to a recipient. If building a transaction
results in an InsufficientFunds error, attempt to build a drain transaction
validating that the
amount_sat
matches the drain output.Auto Trait Implementations§
impl !Freeze for LiquidOnchainWallet
impl Send for LiquidOnchainWallet
impl Sync for LiquidOnchainWallet
impl !RefUnwindSafe for LiquidOnchainWallet
impl Unpin for LiquidOnchainWallet
impl !UnwindSafe for LiquidOnchainWallet
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request