Function getSubgraphUrlByChainId

  • Retrieves the subgraph URL for a given chain ID.

    Parameters

    • chainId: number

      The numeric identifier of the blockchain network

    Returns string | undefined

    The subgraph URL for the given chain ID, or undefined if not found

    const subgraphUrl = getSubgraphUrlByChainId(1);
    // Returns the Ethereum mainnet subgraph URL