import {getBalance} from 'bitcoin/blockexplorerRpc'
import {setBalance} from 'redux/actions'
//
// Update wallet balance once every 10 minutes
console.log('walletUpdateInterval', process.env.BALANCE)
// TODO: does not read from process.env
const walletUpdateInterval = process.env.BALANCE || 600000

const watchWallet = dispatch => ({receivingAddress}) => {
  getBalance(receivingAddress)
    .then(({balance}) => {
      return dispatch(setBalance(balance))
    })
  const handle = setInterval(async () => {
    try {
      const {balance} = await getBalance(receivingAddress)
      dispatch(setBalance(balance))
    } catch (e) {
      console.warning(e)
    }
  }, walletUpdateInterval)
}

export default watchWallet

import {getBalance} from 'bitcoin/blockexplorerRpc'
import {setBalance} from 'redux/actions'
//
// Update wallet balance once every 10 minutes
console.log('walletUpdateInterval', process.env.BALANCE)
// TODO: does not read from process.env
const walletUpdateInterval = process.env.BALANCE || 600000

const watchWallet = dispatch => ({receivingAddress}) => {
  getBalance(receivingAddress)
    .then(({balance}) => {
      return dispatch(setBalance(balance))
    })
  const handle = setInterval(async () => {
    const {balance} = await getBalance(receivingAddress)
    dispatch(setBalance(balance))
  }, walletUpdateInterval)
}

export default watchWallet

--- 
+++ 
@@ -12,8 +12,12 @@
       return dispatch(setBalance(balance))
     })
   const handle = setInterval(async () => {
-    const {balance} = await getBalance(receivingAddress)
-    dispatch(setBalance(balance))
+    try {
+      const {balance} = await getBalance(receivingAddress)
+      dispatch(setBalance(balance))
+    } catch (e) {
+      console.warning(e)
+    }
   }, walletUpdateInterval)
 }
 
Add a console warning when balance check fails
