Implement wallet connections service-detail modal CRUD flow
This commit is contained in:
committed by
GitHub
parent
9673f6733a
commit
0e94ae58fc
@@ -4422,9 +4422,11 @@ async def api_nwc_create_wallet(req: NwcWalletCreateRequest):
|
||||
|
||||
domain = _nwc_domain()
|
||||
verify = _nwc_test_address(alias)
|
||||
pairing_uri = _nwc_pairing_uri(wallet_id, pairing_secret)
|
||||
pairing_qrcode = _generate_qr_base64(pairing_uri)
|
||||
response = {
|
||||
"wallet": _nwc_wallet_meta(wallet, domain),
|
||||
"pairing_uri": _nwc_pairing_uri(wallet_id, pairing_secret),
|
||||
"pairing_uri": pairing_uri,
|
||||
"lightning_address": f"{alias}@{domain}" if domain else None,
|
||||
"result": {
|
||||
"wallet_created": True,
|
||||
@@ -4433,6 +4435,8 @@ async def api_nwc_create_wallet(req: NwcWalletCreateRequest):
|
||||
"public_endpoint_verification": verify,
|
||||
},
|
||||
}
|
||||
if pairing_qrcode:
|
||||
response["pairing_qrcode"] = pairing_qrcode
|
||||
return JSONResponse(status_code=201, content=response)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user