cli: add get pending tx.

This commit is contained in:
Christopher Jeffrey 2016-11-09 18:37:30 -08:00
parent 615537def9
commit 2f3d75d784
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

10
bin/cli
View File

@ -198,6 +198,11 @@ CLI.prototype.getWalletHistory = co(function* getWalletHistory() {
this.log(txs);
});
CLI.prototype.getWalletPending = co(function* getWalletPending() {
var txs = yield this.wallet.getPending(this.config.account);
this.log(txs);
});
CLI.prototype.getWalletCoins = co(function* getWalletCoins() {
var coins = yield this.wallet.getCoins(this.config.account);
this.log(coins);
@ -461,6 +466,8 @@ CLI.prototype.handleWallet = co(function* handleWallet() {
return yield this.getBalance();
case 'history':
return yield this.getWalletHistory();
case 'pending':
return yield this.getWalletPending();
case 'coins':
return yield this.getWalletCoins();
case 'account':
@ -520,7 +527,8 @@ CLI.prototype.handleWallet = co(function* handleWallet() {
this.log(' $ shared add [xpubkey]: Add key to wallet.');
this.log(' $ shared remove [xpubkey]: Remove key from wallet.');
this.log(' $ balance: Get wallet balance.');
this.log(' $ history: View wallet TX history.');
this.log(' $ history: View TX history.');
this.log(' $ pending: View pending TXs.');
this.log(' $ coins: View wallet coins.');
this.log(' $ account list: List account names.');
this.log(' $ account create [account-name]: Create account.');