From 515eca1652c1159edb40ffd6e3083776e5eb0408 Mon Sep 17 00:00:00 2001 From: kenshin-samourai Date: Fri, 2 Oct 2020 22:21:48 +0200 Subject: [PATCH] add getXpubRescanStatus() method to api wrapper --- static/admin/lib/api-wrapper.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/static/admin/lib/api-wrapper.js b/static/admin/lib/api-wrapper.js index 9a3b43b..47f492d 100644 --- a/static/admin/lib/api-wrapper.js +++ b/static/admin/lib/api-wrapper.js @@ -110,6 +110,14 @@ const lib_api = { ) }, + /** + * Gets the status of a xpub rescan + */ + getXpubRescanStatus: function(xpub) { + let uri = this.baseUri + '/xpub/' + xpub + '/import/status' + return this.sendGetUriEncoded(uri, {}) + }, + /** * Notifies the server of the new HD account for tracking. */