diff --git a/cashu/core/models.py b/cashu/core/models.py index 4bbd3b6e..6d525f73 100644 --- a/cashu/core/models.py +++ b/cashu/core/models.py @@ -136,6 +136,7 @@ class PostMeltQuoteRequest(BaseModel): request: str = Field( ..., max_length=settings.mint_max_request_length ) # output payment request + amount: Optional[int] = Field(default=None, gt=0) # input amount class PostMeltQuoteResponse(BaseModel): diff --git a/cashu/wallet/api/router.py b/cashu/wallet/api/router.py index 611ceaa9..e3cee89b 100644 --- a/cashu/wallet/api/router.py +++ b/cashu/wallet/api/router.py @@ -237,16 +237,14 @@ async def send_command( default=None, description="Mint URL to send from (None for default mint)", ), - nosplit: bool = Query( - default=False, description="Do not split tokens before sending." - ), + offline: bool = Query(default=False, description="Force offline send."), ): global wallet if mint: wallet = await mint_wallet(mint) if not nostr: balance, token = await send( - wallet, amount=amount, lock=lock, legacy=False, split=not nosplit + wallet, amount=amount, lock=lock, legacy=False, offline=offline ) return SendResponse(balance=balance, token=token) else: