Last updated 1 year ago
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 ] } ] } ] }
/v1/protocols
OK
curl -L \ --url 'https://api.protocolink.com/v1/protocols'
{ "protocols": [ { "id": "uniswap-v3", "logics": [ { "id": "swap-token", "supportedChainIds": [ 42161 ] } ] } ] }