cli: add get pending tx.
This commit is contained in:
parent
615537def9
commit
2f3d75d784
10
bin/cli
10
bin/cli
@ -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.');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user