async def decode_invoice(self, invoice: str):
        """
        Decode a lightning invoice

        arg:str:invoice:Lightning invoice (bolt 11)
        """
        invoice = Invoice.from_bech32(invoice)
        return invoice.to_debug_json()

        Decode a lightning invoice

        arg:str:invoice:Lightning invoice (bolt 11)
        
electrum/commands.py