def get_unspents(self):
        """Fetches all available unspent transaction outputs.

        :rtype: ``list`` of :class:`~bitcash.network.meta.Unspent`
        """
        self.unspents[:] = NetworkAPI.get_unspent(self.address)
        self.balance = sum(unspent.amount for unspent in self.unspents)
        return self.unspents
def get_unspents ( self ) : self . unspents [ : ] = NetworkAPI . get_unspent ( self . address ) self . balance = sum ( unspent . amount for unspent in self . unspents ) return self . unspents
Fetches all available unspent transaction outputs.

        :rtype: ``list`` of :class:`~bitcash.network.meta.Unspent`