Struct iota_sdk::wallet::account::AccountInner
source · pub struct AccountInner { /* private fields */ }
Available on crate feature
wallet
only.Implementations§
source§impl AccountInner
impl AccountInner
pub async fn details(&self) -> RwLockReadGuard<'_, AccountDetails>
pub async fn details_mut(&self) -> RwLockWriteGuard<'_, AccountDetails>
pub async fn alias(&self) -> String
sourcepub async fn get_output(&self, output_id: &OutputId) -> Option<OutputData>
pub async fn get_output(&self, output_id: &OutputId) -> Option<OutputData>
Get the OutputData
of an output stored in the account
sourcepub async fn get_transaction(
&self,
transaction_id: &TransactionId
) -> Option<Transaction>
pub async fn get_transaction( &self, transaction_id: &TransactionId ) -> Option<Transaction>
Get the Transaction
of a transaction stored in the account
sourcepub async fn get_incoming_transaction(
&self,
transaction_id: &TransactionId
) -> Option<Transaction>
pub async fn get_incoming_transaction( &self, transaction_id: &TransactionId ) -> Option<Transaction>
Get the transaction with inputs of an incoming transaction stored in the account List might not be complete, if the node pruned the data already
sourcepub async fn addresses(&self) -> Result<Vec<AccountAddress>>
pub async fn addresses(&self) -> Result<Vec<AccountAddress>>
Returns all addresses of the account
sourcepub async fn addresses_with_unspent_outputs(
&self
) -> Result<Vec<AddressWithUnspentOutputs>>
pub async fn addresses_with_unspent_outputs( &self ) -> Result<Vec<AddressWithUnspentOutputs>>
Returns only addresses of the account with balance
sourcepub async fn outputs(
&self,
filter: impl Into<Option<FilterOptions>> + Send
) -> Result<Vec<OutputData>>
pub async fn outputs( &self, filter: impl Into<Option<FilterOptions>> + Send ) -> Result<Vec<OutputData>>
Returns outputs of the account
sourcepub async fn unspent_outputs(
&self,
filter: impl Into<Option<FilterOptions>> + Send
) -> Result<Vec<OutputData>>
pub async fn unspent_outputs( &self, filter: impl Into<Option<FilterOptions>> + Send ) -> Result<Vec<OutputData>>
Returns unspent outputs of the account
sourcepub async fn unspent_alias_output(
&self,
alias_id: &AliasId
) -> Result<Option<OutputData>>
pub async fn unspent_alias_output( &self, alias_id: &AliasId ) -> Result<Option<OutputData>>
Gets the unspent alias output matching the given ID.
sourcepub async fn unspent_foundry_output(
&self,
foundry_id: &FoundryId
) -> Result<Option<OutputData>>
pub async fn unspent_foundry_output( &self, foundry_id: &FoundryId ) -> Result<Option<OutputData>>
Gets the unspent foundry output matching the given ID.
sourcepub async fn unspent_nft_output(
&self,
nft_id: &NftId
) -> Result<Option<OutputData>>
pub async fn unspent_nft_output( &self, nft_id: &NftId ) -> Result<Option<OutputData>>
Gets the unspent nft output matching the given ID.
sourcepub async fn incoming_transactions(&self) -> Vec<Transaction>
pub async fn incoming_transactions(&self) -> Vec<Transaction>
Returns all incoming transactions of the account
sourcepub async fn transactions(&self) -> Vec<Transaction>
pub async fn transactions(&self) -> Vec<Transaction>
Returns all transactions of the account
sourcepub async fn pending_transactions(&self) -> Vec<Transaction>
pub async fn pending_transactions(&self) -> Vec<Transaction>
Returns all pending transactions of the account
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AccountInner
impl !RefUnwindSafe for AccountInner
impl Send for AccountInner
impl Sync for AccountInner
impl Unpin for AccountInner
impl UnwindSafe for AccountInner
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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 more