Request Tokens

List available tokens for protocol logic

get
/v1/protocols/{chainId}/{protocolId}/{logicId}/tokens
Path parameters
chainIdintegerRequired

Example: 42161

Example: 42161
protocolIdstringRequired

Example: uniswap-v3

Example: uniswap-v3
logicIdstringRequired

Example: swap-token

Example: swap-token
Responses
200

OK

application/json
get
/v1/protocols/{chainId}/{protocolId}/{logicId}/tokens
200

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