Function getProtocolInfoByChainId

Retrieves detailed protocol information for a specific blockchain network.

const protocols = getProtocolInfoByChainId(1, 'api-key');
// Returns array of protocol details for Ethereum mainnet
  • Parameters

    • chainId: number

      The numeric identifier of the blockchain network

    • theGraphApiKey: string

      The Graph API key for accessing protocol data

    Returns ProtocolDetails[]

    Array of protocol details supported on the specified chain