Struct fireblocks_sdk::Client
source · pub struct Client { /* private fields */ }
Implementations§
source§impl Client
impl Client
pub async fn contracts(&self) -> Result<Vec<WalletContainer>>
pub async fn contract(&self, id: &str) -> Result<WalletContainer>
pub async fn contract_asset( &self, id: &str, asset: &str, address: &str ) -> Result<WalletCreateAssetResponse>
pub async fn contract_create(&self, name: &str) -> Result<WalletContainer>
pub async fn contract_delete(&self, id: &str) -> Result<()>
source§impl Client
impl Client
pub async fn external_wallets(&self) -> Result<Vec<WalletContainer>>
pub async fn external_wallet(&self, id: &str) -> Result<WalletContainer>
pub async fn external_wallet_asset( &self, id: &str, asset: &str, address: &str ) -> Result<WalletCreateAssetResponse>
pub async fn external_wallet_create( &self, name: &str ) -> Result<WalletContainer>
pub async fn external_wallet_delete(&self, id: &str) -> Result<()>
source§impl Client
impl Client
pub async fn internal_wallets(&self) -> Result<Vec<WalletContainer>>
source§impl Client
impl Client
pub async fn supported_assets(&self) -> Result<Vec<SupportedAsset>>
pub async fn staking_chains(&self) -> Result<Vec<String>>
pub async fn staking_positions(&self) -> Result<Vec<StakingPosition>>
pub async fn staking_positions_summary(&self) -> Result<StakingPositionsSummary>
source§impl Client
impl Client
sourcepub async fn transactions<I, K, V>(
&self,
options: I
) -> Result<Vec<Transaction>>
pub async fn transactions<I, K, V>( &self, options: I ) -> Result<Vec<Transaction>>
Query transactions
sourcepub async fn create_transaction(
&self,
args: &TransactionArguments
) -> Result<CreateTransactionResponse>
pub async fn create_transaction( &self, args: &TransactionArguments ) -> Result<CreateTransactionResponse>
Create a transaction
sourcepub async fn create_transaction_vault<T>(
&self,
source_vault: i32,
destination_vault: i32,
asset_id: T,
amount: BigDecimal,
note: Option<&str>
) -> Result<CreateTransactionResponse>
pub async fn create_transaction_vault<T>( &self, source_vault: i32, destination_vault: i32, asset_id: T, amount: BigDecimal, note: Option<&str> ) -> Result<CreateTransactionResponse>
Create a vault-to-vault transaction
sourcepub async fn create_transaction_external<A, D>(
&self,
source_vault: i32,
destination: D,
asset_id: A,
amount: BigDecimal,
note: Option<&str>
) -> Result<CreateTransactionResponse>
pub async fn create_transaction_external<A, D>( &self, source_vault: i32, destination: D, asset_id: A, amount: BigDecimal, note: Option<&str> ) -> Result<CreateTransactionResponse>
Create a transaction to external wallet
sourcepub async fn get_transaction(&self, id: &str) -> Result<Transaction>
pub async fn get_transaction(&self, id: &str) -> Result<Transaction>
Get a transaction by id
sourcepub async fn poll_transaction(
&self,
id: &str,
timeout: Duration,
interval: Duration
) -> Result<Transaction>
pub async fn poll_transaction( &self, id: &str, timeout: Duration, interval: Duration ) -> Result<Transaction>
pub async fn estimate_fee(&self, asset: &str) -> Result<EstimateFee>
source§impl Client
impl Client
sourcepub async fn create_address<T>(
&self,
vault_id: i32,
asset_id: T
) -> Result<CreateAddressResponse>
pub async fn create_address<T>( &self, vault_id: i32, asset_id: T ) -> Result<CreateAddressResponse>
Create an asset (address) for a vault account
pub async fn addresses<T>( &self, vault_id: i32, asset_id: T ) -> Result<Vec<Address>>
pub async fn addresses_paginated<T, I, K, V>( &self, vault_id: i32, asset_id: T, paging: I ) -> Result<AddressContainer>
pub async fn vault(&self, vault_id: i32) -> Result<Account>
pub async fn vaults<I, K, V>(&self, page: I) -> Result<VaultAccounts>
pub async fn create_vault(&self, account: &CreateAccount) -> Result<Account>
pub async fn rename_vault( &self, vault_id: i32, name: &str ) -> Result<VaultRenameResponse>
pub async fn assets<I, K, V>(&self, page: I) -> Result<PaginatedAssetWallet>
source§impl Client
impl Client
pub async fn wallet_connections(&self) -> Result<PagedWalletConnectResponse>
pub async fn wallet_connect( &self, request: &WalletConnectRequest ) -> Result<WalletConnectResponse>
pub async fn wallet_connection_delete(&self, id: &str) -> Result<()>
pub async fn wallet_connection_approve( &self, id: &str, approve: bool ) -> Result<()>
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