zano_web3 4.3.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zano_web3",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/zanoWallet.ts CHANGED
@@ -208,6 +208,10 @@ class ZanoWallet {
208
208
  async getAddressByAlias(alias: string) {
209
209
  return ((await this.zanoWallet.request('GET_ALIAS_DETAILS', { alias })) || undefined) as string | undefined;
210
210
  }
211
+
212
+ async createAlias(alias: string) {
213
+ return ((await this.zanoWallet.request('CREATE_ALIAS', { alias })) || undefined);
214
+ }
211
215
  }
212
216
 
213
217
  export default ZanoWallet;