Trait GetBalance

Source
pub trait GetBalance {
    // Required method
    fn get_balance(&self) -> Amount;
}
Expand description

Ability to query the wallets’ total balance.

This is used by higher-level flows to decide when onchain funds are available for boarding or fee bumping, and to present balance information to users.

Required Methods§

Source

fn get_balance(&self) -> Amount

Get the total balance of the wallet.

Implementors§

Source§

impl<W: Deref<Target = Wallet>> GetBalance for W