Struct iota_client::api::GetBalanceBuilder
source · pub struct GetBalanceBuilder<'a> { /* private fields */ }
Expand description
Builder of get_balance API
Implementations§
source§impl<'a> GetBalanceBuilder<'a>
impl<'a> GetBalanceBuilder<'a>
sourcepub fn with_account_index(self, account_index: usize) -> Self
pub fn with_account_index(self, account_index: usize) -> Self
Sets the account index.
sourcepub fn with_initial_address_index(self, initial_address_index: usize) -> Self
pub fn with_initial_address_index(self, initial_address_index: usize) -> Self
Sets the index of the address to start looking for balance.
sourcepub fn with_gap_limit(self, gap_limit: usize) -> Self
pub fn with_gap_limit(self, gap_limit: usize) -> Self
Sets the gap limit to specify how many addresses will be checked each round. If gap_limit amount of addresses in a row have no balance the function will return.