diff --git a/app/repositories/ln_impl/lnd_grpc.py b/app/repositories/ln_impl/lnd_grpc.py index be9e5d8..c440d29 100644 --- a/app/repositories/ln_impl/lnd_grpc.py +++ b/app/repositories/ln_impl/lnd_grpc.py @@ -421,6 +421,7 @@ async def add_invoice_impl( # Can't use Invoice.from_lnd_grpc() here because # the response is not a standard invoice invoice = Invoice( + value_msat=value_msat, memo=memo, expiry=expiry, r_hash=response.r_hash.hex(), diff --git a/app/routers/lightning.py b/app/routers/lightning.py index 73b89a2..4a5ba81 100644 --- a/app/routers/lightning.py +++ b/app/routers/lightning.py @@ -69,7 +69,12 @@ responses = { responses=responses, ) async def addinvoice( - value_msat: int, memo: str = "", expiry: int = 3600, is_keysend: bool = False + value_msat: int = Query(description="The amount of msat of the invoice", ge=0), + memo: str = Query("", description="The memo of the invoice"), + expiry: int = Query(3600, description="Expiry time in seconds"), + is_keysend: bool = Query( + False, description="LND only: Whether this invoice is a keysend invoice." + ), ): try: return await add_invoice(memo, value_msat, expiry, is_keysend)