import { InMemoryCache } from 'apollo-cache-inmemory' ; import { ApolloClient } from 'apollo-client' ; import { HttpLink } from 'apollo-link-http' ; import fetch from 'node-fetch' ; export const blockClient = new ApolloClient ( { link : new HttpLink ( { fetch , uri : 'https://api.thegraph.com/subgraphs/name/blocklytics/ethereum-blocks' } ) , cache : new InMemoryCache ( ) } ) ;