diff --git a/README.md b/README.md index 9540bc4..6914cb1 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,12 @@ A Multisig HD Wallet Service, with minimun server trust. export BIT_FILE=pete.dat ./bit -f pete.dat status - ./bit address + + # Generate addresses to receive money + ./bit address + * New Address 3xxxxxx + + # Check your balance ./bit balance # Spend coins. Amount can be specified in btc, bit or sat (default) @@ -43,9 +48,14 @@ A Multisig HD Wallet Service, with minimun server trust. # Sign or reject TXs from other copayers ./bit -f pete.dat reject ./bit -f pete.dat sign + + # List transaction history + a few minutes ago: => sent 100 bit ["100 bits to mother" by pete] (1 confirmations) + a day ago: <= received 1,400 bit (48 confirmations) + a day ago: <= received 300 bit (52 confirmations) - # List all commands: - ./bit --help + # List all commands: + ./bit --help ``` diff --git a/lib/client/api.js b/lib/client/api.js index ef4d4e6..c12fdc0 100644 --- a/lib/client/api.js +++ b/lib/client/api.js @@ -768,13 +768,13 @@ API.prototype.removeTxProposal = function(txp, cb) { API.prototype.getTxHistory = function(opts, cb) { var self = this; - this._loadAndCheck(function(err, data) { + this._loadAndCheck({}, function(err, wcd) { if (err) return cb(err); var url = '/v1/txhistory/'; - self._doGetRequest(url, data, function(err, txs) { + self._doGetRequest(url, wcd, function(err, txs) { if (err) return cb(err); - _processTxps(txs, data.sharedEncryptingKey); + _processTxps(txs, wcd.sharedEncryptingKey); return cb(null, txs); });