Custom hook that provides the status of the Web3 connection.