pub struct BitvoraClient { /* private fields */ }Implementations§
Source§impl BitvoraClient
impl BitvoraClient
pub fn new(base_url: &str, api_key: &str) -> Self
pub async fn withdraw( &self, request: WithdrawRequest, ) -> Result<WithdrawResponse, APIError>
pub async fn estimate_withdrawal( &self, request: EstimateWithdrawalRequest, ) -> Result<EstimateWithdrawalResponse, APIError>
pub async fn create_lightning_invoice( &self, request: CreateLightningInvoiceRequest, ) -> Result<CreateLightningInvoiceResponse, APIError>
pub async fn create_lightning_address( &self, request: CreateLightningAddressRequest, ) -> Result<CreateLightningAddressResponse, APIError>
pub async fn create_onchain_address( &self, request: CreateOnChainAddressRequest, ) -> Result<CreateOnChainAddressResponse, APIError>
pub async fn get_withdrawal( &self, id: &str, ) -> Result<WithdrawResponse, APIError>
pub async fn get_deposit( &self, id: &str, ) -> Result<GetDepositResponse, APIError>
pub async fn get_balance(&self) -> Result<GetBalanceResponse, APIError>
pub async fn get_transactions( &self, ) -> Result<GetTransactionsResponse, APIError>
Auto Trait Implementations§
impl !RefUnwindSafe for BitvoraClient
impl !UnwindSafe for BitvoraClient
impl Freeze for BitvoraClient
impl Send for BitvoraClient
impl Sync for BitvoraClient
impl Unpin for BitvoraClient
impl UnsafeUnpin for BitvoraClient
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