pub struct Client { /* private fields */ }
Implementations§
Source§impl Client
impl Client
Sourcepub async fn poll_transaction(
&self,
id: &str,
timeout: Duration,
interval: Duration,
callback: impl Fn(&TransactionResponse) + Send + Sync,
) -> Result<TransactionResponse>
pub async fn poll_transaction( &self, id: &str, timeout: Duration, interval: Duration, callback: impl Fn(&TransactionResponse) + Send + Sync, ) -> Result<TransactionResponse>
Source§impl Client
impl Client
pub async fn vault_whitelist_transfer( &self, vault_id: &str, asset_id: impl Into<String>, amount: impl Into<String>, dest_type: WalletType, dest_id: &str, fee_level: Option<FeeLevel>, ) -> Result<CreateTransactionResponse>
Source§impl Client
impl Client
pub async fn vault(&self, id: &str) -> Result<VaultAccount>
pub async fn create_vault( &self, params: CreateVaultAccountRequest, ) -> Result<VaultAccount>
pub async fn create_asset( &self, vault_id: &str, asset_id: impl Into<String>, ) -> Result<String>
Source§impl Client
impl Client
pub async fn wallet_create_asset( &self, wallet_type: WalletType, id: &str, asset_id: impl Into<String>, address: &str, ) -> Result<String>
pub async fn wallet_delete( &self, wallet_type: WalletType, id: &str, ) -> Result<()>
pub async fn wallet_create( &self, wallet_type: WalletType, name: &str, ) -> Result<String>
pub async fn wallet_by_name( &self, wallet_type: WalletType, name: &str, ) -> Result<Option<WalletContainer>>
pub async fn wallet_by_id( &self, wallet_type: WalletType, id: &str, ) -> Result<WalletContainer>
pub async fn wallets( &self, wallet_type: WalletType, ) -> Result<Vec<WalletContainer>>
Source§impl Client
impl Client
pub async fn get_transaction(&self, id: &str) -> Result<TransactionResponse>
pub async fn supported_assets(&self) -> Result<Vec<AssetTypeResponse>>
pub async fn addresses( &self, vault_id: &str, asset_id: impl Into<String>, ) -> Result<Vec<VaultWalletAddress>>
pub fn transactions_api(&self) -> &dyn TransactionsApi
pub fn vaults_api(&self) -> &dyn VaultsApi
pub fn wallet_connect_api(&self) -> &dyn DAppConnectionsApi
pub fn wallet_internal_api(&self) -> &dyn WhitelistedInternalWalletsApi
pub fn wallet_external_api(&self) -> &dyn WhitelistedExternalWalletsApi
pub fn wallet_contract_api(&self) -> &dyn WhitelistedContractsApi
pub fn apis(&self) -> Arc<ApiClient>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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