Merge pull request #78 from isocolsky/readme

add history example to readme
This commit is contained in:
Matias Alejo Garcia 2015-02-24 11:59:59 -03:00
commit 45d87941a2
2 changed files with 16 additions and 6 deletions

View File

@ -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 <id>
./bit -f pete.dat sign <id>
# 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
```

View File

@ -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);
});