async def getbalance(self, wallet: Abstract_Wallet = None):
        """Return the balance of your wallet. """
        c, u, x = wallet.get_balance()
        l = wallet.lnworker.get_balance() if wallet.lnworker else None
        out = {"confirmed": str(to_decimal(c)/COIN)}
        if u:
            out["unconfirmed"] = str(to_decimal(u)/COIN)
        if x:
            out["unmatured"] = str(to_decimal(x)/COIN)
        if l:
            out["lightning"] = str(to_decimal(l)/COIN)
        return out
Return the balance of your wallet. 
electrum/commands.py