pub struct GetInfoResponse {
pub identity_pubkey: String,
pub balance_sats: u64,
pub token_balances: HashMap<String, TokenBalance>,
pub recoverable_funds_sats: u64,
pub last_sync_error: Option<SyncError>,
pub last_synced_at: Option<u64>,
}Expand description
Response containing the balance of the wallet
Fields§
§identity_pubkey: StringThe identity public key of the wallet as a hex string
balance_sats: u64The balance in satoshis
token_balances: HashMap<String, TokenBalance>The balances of the tokens in the wallet keyed by the token identifier
recoverable_funds_sats: u64Funds that left balance_sats and wait to be recovered on-chain with
recover_funds. The SDK on this device takes them out of this total
once it has seen their recovery in a block, at the next sync at the
latest. It looks for that in prepare_recover_funds, recover_funds
and check_recover_funds, and during syncs at most once per leaf. The
total includes funds too small to be worth recovering at the fee rate
you choose.
last_sync_error: Option<SyncError>Why the latest sync could not refresh the balances, which may then be
out of date. Unset once a sync succeeds. It is not persisted, so it is
also unset after each connect until the first sync ends.
last_synced_at: Option<u64>When a sync last refreshed the balances, in seconds since the Unix epoch. Unset until a sync succeeds with this storage.
Trait Implementations§
Source§impl Clone for GetInfoResponse
impl Clone for GetInfoResponse
Source§fn clone(&self) -> GetInfoResponse
fn clone(&self) -> GetInfoResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GetInfoResponse
impl Debug for GetInfoResponse
Auto Trait Implementations§
impl Freeze for GetInfoResponse
impl RefUnwindSafe for GetInfoResponse
impl Send for GetInfoResponse
impl Sync for GetInfoResponse
impl Unpin for GetInfoResponse
impl UnsafeUnpin for GetInfoResponse
impl UnwindSafe for GetInfoResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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>
T in a tonic::Request