code: def balance(self, unlocked=False):
          
          return self._backend.balances(account=self.index)[1 if unlocked else 0]
docs: Returns specified balance.
  
          :param unlocked: if `True`, return the unlocked balance, otherwise return total balance
          :rtype: Decimal