src/store/Wallet.js
// Subscribe to latest account transactions.
Subscribe to latest account transactions.
Subscribe to latest account transactions .
async subscribe({ commit, dispatch }, address) {
      if (!address || !address.length) {
        return ;
      }
      const subscriptions = await CatapultWebsocket.subscribeTransactions(
        dispatch,
        CatapultHttp.websocketUrl,
        address,
      )
      commit('mutate', {key: 'subscriptions', value: subscriptions})
    }
async subscribe ( { commit , dispatch } , address ) { if ( ! address || ! address . length ) { return ; } const subscriptions = await CatapultWebsocket . subscribeTransactions ( dispatch , CatapultHttp . websocketUrl , address , ) commit ( 'mutate' , { key : 'subscriptions' , value : subscriptions } ) }
Subscribe to latest account transactions.
Subscribe to latest account transactions .