get only one address instead of multiple

This commit is contained in:
Tiago vasconcelos 2021-12-30 11:56:19 +00:00
parent 32ea1106f9
commit b9104bf63b

View File

@ -82,11 +82,9 @@ async def api_wallet_delete(wallet_id, w: WalletTypeInfo = Depends(require_admin
@watchonly_ext.get("/api/v1/address/{wallet_id}")
async def api_fresh_address(wallet_id, w: WalletTypeInfo = Depends(get_key_type)):
await get_fresh_address(wallet_id)
address = await get_fresh_address(wallet_id)
addresses = await get_addresses(wallet_id)
return [address.dict() for address in addresses]
return address.dict()
@watchonly_ext.get("/api/v1/addresses/{wallet_id}")