Methods
Static EditWallet
- EditWallet<T>(__namedParameters: { colorIndex: number; name: string; walletId: string }): Promise<void>
Type Parameters
Parameters
__namedParameters: { colorIndex: number; name: string; walletId: string }
colorIndex: number
name: string
walletId: string
Returns Promise<void>
Static createNewWalletAccount
- createNewWalletAccount<T>(name: string, password: string, colorIndex: number, chainInfos: ChainInfo[]): Promise<Key<T>>
Type Parameters
Parameters
name: string
password: string
colorIndex: number
Returns Promise<Key<T>>
Static createWalletUsingMnemonic
Type Parameters
Parameters
Returns Promise<Key<T>>
Static decrypt
- decrypt(password: string): Promise<void>
Parameters
Returns Promise<void>
Static encrypt
- encrypt<T>(password: string): Promise<void>
Type Parameters
Parameters
Returns Promise<void>
Static getAllWallets
- getAllWallets<T>(): Promise<Keystore<T>>
Type Parameters
Returns Promise<Keystore<T>>
Static getSigner
- getSigner<T>(walletId: string, password: string, __namedParameters: { addressPrefix: string; coinType: string; ethWallet?: boolean; pubKeyBech32Address?: boolean }): Promise<EthWallet | Wallet | PvtKeyWallet>
Type Parameters
Parameters
walletId: string
password: string
__namedParameters: { addressPrefix: string; coinType: string; ethWallet?: boolean; pubKeyBech32Address?: boolean }
addressPrefix: string
coinType: string
Optional ethWallet?: boolean
Optional pubKeyBech32Address?: boolean
Static getWalletsFromMnemonic
- getWalletsFromMnemonic(mnemonic: string, count: number, coinType: string, addressPrefix: string): Promise<{ address: string; index: number; pubkey: null | Uint8Array }[]>
Parameters
mnemonic: string
count: number
coinType: string
addressPrefix: string
Returns Promise<{ address: string; index: number; pubkey: null | Uint8Array }[]>
Static importNewWallet
- importNewWallet<T>(privateKey: string, password: string, chainInfos: ChainInfo[], addressIndex?: number, name?: string): Promise<Key<T>>
Type Parameters
Parameters
privateKey: string
password: string
Optional addressIndex: number
Optional name: string
Returns Promise<Key<T>>
Static removeWallets
- removeWallets<T>(keyIds: string[]): Promise<void>
Type Parameters
Parameters
Returns Promise<void>