Function isAlgebraProtocolBySubgraph

  • Checks if a protocol is an Algebra protocol based on its subgraph URL.

    Parameters

    • subgraphUrl: string

      The subgraph URL to check

    • theGraphApiKey: string

      The Graph API key for accessing protocol data

    Returns boolean

    True if the protocol is an Algebra protocol, false otherwise

    const isAlgebra = isAlgebraProtocolBySubgraph('https://api.thegraph.com/...', 'api-key');