async fetchWalletTransactions(index) {
    console.log('fetchWalletTransactions for wallet#', index);
    if (index || index === 0) {
      let c = 0;
      for (let wallet of this.wallets) {
        if (c++ === index) {
          await wallet.fetchTransactions();
          if (wallet.fetchPendingTransactions) {
            await wallet.fetchPendingTransactions();
          }
          if (wallet.fetchUserInvoices) {
            await wallet.fetchUserInvoices();
          }
        }
      }
    } else {
      for (let wallet of this.wallets) {
        await wallet.fetchTransactions();
        if (wallet.fetchPendingTransactions) {
          await wallet.fetchPendingTransactions();
        }
        if (wallet.fetchUserInvoices) {
          await wallet.fetchUserInvoices();
        }
      }
    }
  }
/**
   * Fetches from remote endpoint all transactions for each wallet.
   * Returns void.
   * To access transactions - get them from each respective wallet.
   * If index is present then fetch only from this specific wallet.
   *
   * @param index {Integer} Index of the wallet in this.wallets array,
   *                        blank to fetch from all wallets
   * @return {Promise.<void>}
   */
Fetches from remote endpoint all transactions for each wallet.
Returns void.
To access transactions - get them from each respective wallet.
If index is present then fetch only from this specific wallet.

@param index {Integer} Index of the wallet in this.wallets array,
blank to fetch from all wallets
@return {Promise.}
Fetches from remote endpoint all transactions for each wallet . Returns void . To access transactions - get them from each respective wallet . If index is present then fetch only from this specific wallet . @param index { Integer } Index of the wallet in this . wallets array blank to fetch from all wallets @return { Promise . }
async fetchWalletTransactions(index) {
    console.log('fetchWalletTransactions for wallet#', index);
    if (index || index === 0) {
      let c = 0;
      for (let wallet of this.wallets) {
        if (c++ === index) {
          await wallet.fetchTransactions();
          if (wallet.fetchPendingTransactions) {
            await wallet.fetchPendingTransactions();
          }
          if (wallet.fetchUserInvoices) {
            await wallet.fetchUserInvoices();
          }
        }
      }
    } else {
      for (let wallet of this.wallets) {
        await wallet.fetchTransactions();
        if (wallet.fetchPendingTransactions) {
          await wallet.fetchPendingTransactions();
        }
        if (wallet.fetchUserInvoices) {
          await wallet.fetchUserInvoices();
        }
      }
    }
  }
async fetchWalletTransactions ( index ) { console . log ( 'fetchWalletTransactions for wallet#' , index ) ; if ( index || index === 0 ) { let c = 0 ; for ( let wallet of this . wallets ) { if ( c ++ === index ) { await wallet . fetchTransactions ( ) ; if ( wallet . fetchPendingTransactions ) { await wallet . fetchPendingTransactions ( ) ; } if ( wallet . fetchUserInvoices ) { await wallet . fetchUserInvoices ( ) ; } } } } else { for ( let wallet of this . wallets ) { await wallet . fetchTransactions ( ) ; if ( wallet . fetchPendingTransactions ) { await wallet . fetchPendingTransactions ( ) ; } if ( wallet . fetchUserInvoices ) { await wallet . fetchUserInvoices ( ) ; } } } }
Fetches from remote endpoint all transactions for each wallet.
Fetches from remote endpoint all transactions for each wallet .