Request Tokens
Path parameters
chainIdintegerRequiredExample:
Example: 42161
42161protocolIdstringRequiredExample:
Example: uniswap-v3
uniswap-v3logicIdstringRequiredExample:
Example: swap-token
swap-tokenResponses
200
OK
application/json
get
/v1/protocols/{chainId}/{protocolId}/{logicId}/tokens200
OK
Provides a list of tokens supported by a Logic, depending on the chain and protocol. See Networks & Protocols.
const client = axios.create({ baseURL: 'https://api.protocolink.com' });
const getTokens = async (chainId, protocol, logicId) => {
const result = await client.get(`/v1/protocols/${chainId}/${protocol}/${logicId}/tokens`);
return result.data;
}
const chainId = 1;
const protocol = "uniswap-v3";
const logicId = "swap-token";
const tokens = await getTokens(chainId, protocol, logicId);The result contains a list of chains that looks the following:
Presented according to different protocols or the token has been paired:
Last updated