Function getProtocolsForChainId

Gets a list of supported protocols for a specific blockchain network.

const protocols = getProtocolsForChainId(1, 'api-key');
// Returns ['Uniswap', 'Sushi', ...] for Ethereum mainnet
  • Parameters

    • chainId: number

      The numeric identifier of the blockchain network

    • theGraphApiKey: string

      The Graph API key for accessing protocol data

    Returns Protocol[]

    Array of protocol names supported on the specified chain

MMNEPVFCICPMFPCPTTAAATR