diff --git a/lib/wallet.js b/lib/wallet.js index 4f9a710..21a6491 100644 --- a/lib/wallet.js +++ b/lib/wallet.js @@ -82,6 +82,18 @@ Wallet.prototype.balance = function() { return this._request(method); }; +// rescan the blockchain for the wallet balance +Wallet.prototype.rescan = function() { + let method = 'rescan_blockchain'; + return this._request(method); +}; + +// store the wallet balance +Wallet.prototype.store = function() { + let method = 'store'; + return this._request(method); +}; + // return the wallet address Wallet.prototype.address = function() { let method = 'get_address';