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.

31 lines
530 B

10 years ago
var _ = require('lodash');
var async = require('async');
var log = require('npmlog');
var fs = require('fs');
10 years ago
var CliLib = require('./lib/clilib');
10 years ago
10 years ago
try {
fs.unlinkSync('copay.dat');
} catch (e) {}
10 years ago
10 years ago
var cli = new CliLib({
filename: 'copay.dat'
});
cli.createWallet('my wallet', 'me', 1, 1, 'testnet', function(err, secret) {
10 years ago
if (err) {
console.log(err);
process.exit();
}
10 years ago
cli.status(function(err, status) {
10 years ago
if (err) {
console.log(err);
process.exit();
}
console.log(status);
})
});