feat: add wallet check
This commit is contained in:
parent
104aca33ff
commit
163f0b6014
1 changed files with 6 additions and 1 deletions
|
|
@ -218,7 +218,11 @@ async def keys(
|
|||
|
||||
|
||||
@cashu_ext.get("/api/v1/mint/{cashu_id}")
|
||||
async def mint_pay_request(amount: int = 0, cashu_id: str = Query(None)):
|
||||
async def mint_pay_request(
|
||||
amount: int = 0,
|
||||
cashu_id: str = Query(None),
|
||||
wallet: WalletTypeInfo = Depends(get_key_type),
|
||||
):
|
||||
"""Request minting of tokens. Server responds with a Lightning invoice."""
|
||||
|
||||
cashu = await get_cashu(cashu_id)
|
||||
|
|
@ -252,6 +256,7 @@ async def mint_coins(
|
|||
payloads: MintPayloads,
|
||||
payment_hash: Union[str, None] = None,
|
||||
cashu_id: str = Query(None),
|
||||
wallet: WalletTypeInfo = Depends(get_key_type),
|
||||
):
|
||||
"""
|
||||
Requests the minting of tokens belonging to a paid payment request.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue