Merge pull request #78 from isocolsky/readme
add history example to readme
This commit is contained in:
commit
45d87941a2
14
README.md
14
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
|
||||
|
||||
# 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)
|
||||
|
@ -44,8 +49,13 @@ A Multisig HD Wallet Service, with minimun server trust.
|
|||
./bit -f pete.dat reject <id>
|
||||
./bit -f pete.dat sign <id>
|
||||
|
||||
# List all commands:
|
||||
./bit --help
|
||||
# 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
|
||||
|
||||
|
||||
```
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue