import { HomeOptions } from '@haechi-labs/face-types';
import { Internal } from './Internal';
/**
* The interface to control view of face wallet.
*
* @category API
*/
export class Wallet {
private readonly internal: Internal;
constructor(internal: Internal) {
this.internal = internal;
}
/**
* Open wallet home
*
* @method
* @returns {Promise<void>}
*/
async home(options?: HomeOptions) {
if (options?.networks?.length === 0) {
throw new Error("The 'networks' should select at least one network.");
}
return this.internal.openHome(options);
}
}
Source