UNPKG

walletd

Version:

Universal headless digital asset wallet for machines

37 lines (18 loc) 352 B
require('dotenv').config(); import { init } from '../config'; class App { wallets: any; constructor(wallets: any) { this.wallets = wallets; } getWallet(name: string) { return this.wallets[name]; } } async function start(): Promise<App> { let wallets = await init(); return new App(wallets); } export { start }