mmn-client-js 1.0.14 → 1.0.15

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/dist/index.d.ts CHANGED
@@ -271,6 +271,7 @@ declare class MmnClient {
271
271
  * Get current nonce for an account
272
272
  */
273
273
  getCurrentNonce(userId: string, tag?: 'latest' | 'pending'): Promise<GetCurrentNonceResponse>;
274
+ getCurrentNonceByAddress(address: string, tag?: 'latest' | 'pending'): Promise<GetCurrentNonceResponse>;
274
275
  getAccountByUserId(userId: string): Promise<GetAccountByAddressResponse>;
275
276
  scaleAmountToDecimals(originalAmount: string | number, decimals?: number): string;
276
277
  validateAddress(addr: string): boolean;
package/dist/index.esm.js CHANGED
@@ -8093,6 +8093,9 @@ class MmnClient {
8093
8093
  const address = this.getAddressFromUserId(userId);
8094
8094
  return this.makeRequest('account.getcurrentnonce', { address, tag });
8095
8095
  }
8096
+ async getCurrentNonceByAddress(address, tag = 'latest') {
8097
+ return this.makeRequest('account.getcurrentnonce', { address, tag });
8098
+ }
8096
8099
  async getAccountByUserId(userId) {
8097
8100
  const address = this.getAddressFromUserId(userId);
8098
8101
  return this.makeRequest('account.getaccount', {