Finds a protocol by its subgraph URL.
const protocol = getProtocolBySubgraph('https://api.thegraph.com/...', 'api-key'); Copy
const protocol = getProtocolBySubgraph('https://api.thegraph.com/...', 'api-key');
The subgraph URL to search for
The Graph API key for accessing protocol data
The protocol name if found, undefined otherwise
Finds a protocol by its subgraph URL.
Example