Examples

// Define constants
const API_URL = 'https://pro.circular.bot/market/tokens';
const API_KEY = 'your-api-key'; // Replace by your API Key

const requestOptions = {
    headers: {
        'Content-Type': 'application/json',
        'x-api-key': API_KEY,
    },
    params: {
        maxTokensList: 10,
        maxTimeRange: 900,
        excludeTokens: [
            "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", // USDC
            "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"  // USDT
        ].join(','),
        provider: "JITO", // Optional
        token: "So11111111111111111111111111111111111111112",
    },
};

const getTokensMintList = async () => {
    try {
        const response = await axios.get(API_URL, requestOptions);

        console.log('Mints: ', response?.data);
    } catch (error) {
        console.log('Error: ', error?.response?.data);
    }
};

getTokensMintList();

Last updated