text: /**
   *    SPDX-License-Identifier: Apache-2.0
   */
  
  import { createAction } from 'redux-actions'
  import * as actionTypes from '../action-types'
  import { get } from '../../../services/request.js';
  export const getLatestBlock = (channel) => dispatch => {
      // post('/api/status/get')
      get('/api/status/'+channel)
          .then(resp => {
              dispatch(createAction(actionTypes.LATEST_BLOCK)(resp.latestBlock))
          }).catch((error) => {
              console.error(error);
          })
  }
  
  