'Return the balance of the wallet.'

def get_balance(self):

    divider = 100000000
    if self.created:
        (confirmed, unconfirmed, unmatured) = self.wallet.get_balance()
        return succeed({'available': (float(confirmed) / divider), 'pending': (float((unconfirmed + unmatured)) / divider), 'currency': 'BTC'})
    else:
        return succeed({'available': 0, 'pending': 0, 'currency': 'BTC'})
