Add Filter to get_next_posts_link

You can indeed add a filter to get_next_posts_link, but it has a different name, namely next_posts_link_attributes Complete code would look like this:

add_filter('next_posts_link_attributes', 'wpse_230552');
function wpse_230552() {
    return 'class="iamclass"';
    }

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)