walletd
Version:
Universal headless digital asset wallet for machines
23 lines (12 loc) • 378 B
text/typescript
import * as program from 'commander';
import { start } from '../lib/app';
program
.command('getbalance <walletName>')
.action(async (walletName) => {
let app = await start();
let wallet = app.getWallet(walletName);
let balance = await wallet.getBalance();
console.log('balance', balance);
});
program.parse(process.argv);