You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
782 B

10 years ago
#!/usr/bin/env node
10 years ago
var _ = require('lodash');
10 years ago
var program = require('commander');
var utils = require('./cli-utils');
program = utils.configureCommander(program);
10 years ago
program
.parse(process.argv);
var args = program.args;
var client = utils.getClient(program);
10 years ago
client.getStatus(function(err, res) {
utils.die(err);
10 years ago
10 years ago
var x = res.wallet;
console.log('* Wallet %s [%s]: %d-%d %s ', x.name, x.network, x.m, x.n, x.status);
10 years ago
if (x.status != 'complete')
console.log(' Missing copayers:', x.n - x.copayers.length);
console.log('* Copayers:', _.pluck(x.copayers,'name').join(', '));
10 years ago
var x = res.balance;
10 years ago
console.log('* Balance %s (Locked: %s)', utils.renderAmount(x.totalAmount), utils.renderAmount(x.lockedAmount));
utils.renderTxProposals(res.pendingTxps);
10 years ago
});