pub fn create_next_account(&mut self, sync_with_validator: bool) -> Result<AddressAndIndex> {
        let (address, _) = self.wallet.new_address()?;

        let account_data =
            Self::get_account_data_from_address(&self.client, address, sync_with_validator, None)?;

        Ok(self.insert_account_data(account_data))
    }
/// Returns the account index that should be used by user to reference this account
Returns the account index that should be used by user to reference this account
Returns the account index that should be used by user to reference this account
pub fn create_next_account(&mut self, sync_with_validator: bool) -> Result<AddressAndIndex> {
        let (address, _) = self.wallet.new_address()?;
        let account_data =
            Self::get_account_data_from_address(&self.client, address, sync_with_validator, None)?;
        Ok(self.insert_account_data(account_data))
    }
pub fn create_next_account ( & mut self , sync_with_validator : bool ) -> Result < AddressAndIndex > { let ( address , _ ) = self . wallet . new_address ( ) ? ; let account_data = Self :: get_account_data_from_address ( & self . client , address , sync_with_validator , None ) ? ; Ok ( self . insert_account_data ( account_data ) ) }
Returns the account index that should be used by user to reference this account
Returns the account index that should be used by user to reference this account
&mut self
sync_with_validator
bool