Request Protocols

Provides a list of Protocols. See Networks & Protocols.

const client = axios.create({ baseURL: 'https://api.protocolink.com' });
const getProtocols = async () => {
    const result = await client.get(`/v1/protocols`);
    return result.data;
}
const tokens = await getProtocols();

The result contains a list of protocols and logics that looks the following:

{
  "protocols": [
    {
      "id": "uniswap-v3",
      "logics": [
        {
          "id": "swap-token",
          "supportedChainIds": [
            1
          ]
        }
      ]
    }
  ]
}

Last updated