@xchainjs/xchain-thorchain 2.0.13 → 2.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/clientKeystore.d.ts +7 -0
- package/lib/index.esm.js +11 -0
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +11 -0
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -131077,6 +131077,17 @@ class ClientKeystore extends Client {
|
|
|
131077
131077
|
const address = bech32$1.encode(this.prefix, words);
|
|
131078
131078
|
return address;
|
|
131079
131079
|
}
|
|
131080
|
+
/**
|
|
131081
|
+
* Get the Account frmom Address.
|
|
131082
|
+
* @param {number | undefined} walletIndex The index of the address derivation path. Default is 0.
|
|
131083
|
+
* @returns {Account} The Account holder details or error if account does not exist
|
|
131084
|
+
*/
|
|
131085
|
+
getAccountDetails(walletIndex) {
|
|
131086
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
131087
|
+
const account = yield this.getAccount(this.getAddress(walletIndex));
|
|
131088
|
+
return account;
|
|
131089
|
+
});
|
|
131090
|
+
}
|
|
131080
131091
|
/**
|
|
131081
131092
|
* Returns the private key associated with an index
|
|
131082
131093
|
*
|