zano_web3 4.2.0 → 4.4.0
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/package.json +1 -1
- package/src/zanoWallet.ts +8 -0
package/package.json
CHANGED
package/src/zanoWallet.ts
CHANGED
|
@@ -204,6 +204,14 @@ class ZanoWallet {
|
|
|
204
204
|
async getWallet() {
|
|
205
205
|
return (await this.zanoWallet.request('GET_WALLET_DATA'))?.data as Wallet;
|
|
206
206
|
}
|
|
207
|
+
|
|
208
|
+
async getAddressByAlias(alias: string) {
|
|
209
|
+
return ((await this.zanoWallet.request('GET_ALIAS_DETAILS', { alias })) || undefined) as string | undefined;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
async createAlias(alias: string) {
|
|
213
|
+
return ((await this.zanoWallet.request('CREATE_ALIAS', { alias })) || undefined);
|
|
214
|
+
}
|
|
207
215
|
}
|
|
208
216
|
|
|
209
217
|
export default ZanoWallet;
|