code: def IsAllSpent(self):
          
          for item in self.Items:
              if item == CoinState.Confirmed:
                  return False
          return True
docs: Flag indicating if all balance is spend.
  
          Returns:
              bool: