diff --git a/lib/wallet/http.js b/lib/wallet/http.js index 2d0f1a1b..afc856a4 100644 --- a/lib/wallet/http.js +++ b/lib/wallet/http.js @@ -574,9 +574,12 @@ class HTTP extends Server { const key = HDPublicKey.fromBase58(b58, this.network); - await req.wallet.addSharedKey(acct, key); + const added = await req.wallet.addSharedKey(acct, key); - res.json(200, { success: true }); + res.json(200, { + success: true, + addedKey: added + }); }); // Remove key @@ -589,9 +592,12 @@ class HTTP extends Server { const key = HDPublicKey.fromBase58(b58, this.network); - await req.wallet.removeSharedKey(acct, key); + const removed = await req.wallet.removeSharedKey(acct, key); - res.json(200, { success: true }); + res.json(200, { + success: true, + removedKey: removed + }); }); // Get key by address