Dashboard API

The dashboard API can be used by developers to access information on tokens, wallets and more.

Tokenomics History

Hourly summaries for charting staking and circulating supply over the past 30 days.

Curl

curl -X GET "https://api.andromedaprotocol.io/v1/tokenomics/history?limit=1"

Example

Get the circluating supply for ANDR token.

import fetch from 'node-fetch';

// Define the API endpoint
const url = "https://api.andromedaprotocol.io/v1/tokenomics/history?limit=1";

// Fetch data from the API
fetch(url)
  .then(response => {
    if (!response.ok) {
      throw new Error(`HTTP error! status: ${response.status}`);
    }
    return response.json();
  })
  .then(data => {
    // Check if the result array exists and has at least one element
    if (data.result && data.result.length > 0) {
      const circulatingSupply = data.result[0].circulating_supply;
      console.log(circulatingSupply);
    } else {
      console.log('No result data found');
    }
  })
  .catch(error => {
    console.error('Error fetching data:', error);
  });

Wallets

Track known wallets for big activity & enhance security through community monitoring.

Curl

curl -X GET "https://api.andromedaprotocol.io/v1/tokenomics/wallets"

Example

Get the top 5 wallets with most ANDR tokens.

import fetch from 'node-fetch';

// Define the API endpoint
const url = "https://api.andromedaprotocol.io/v1/tokenomics/wallets";

// Fetch data from the API
fetch(url)
  .then(response => {
    if (!response.ok) {
      throw new Error(`HTTP error! status: ${response.status}`);
    }
    return response.json();
  })
  .then(data => {
    // Check if the result array exists and has at least one element
    if (data.result && data.result.length > 0) {
      // Sort wallets by balance in descending order and get the top 5
      const topHolders = data.result.sort((a, b) => b.balance - a.balance).slice(0, 5);
      topHolders.forEach((holder, index) => {
        console.log(`${index + 1}. Address: ${holder.address}, Balance: ${holder.balance}`);
      });
    } else {
      console.log('No wallets data found');
    }
  })
  .catch(error => {
    console.error('Error fetching data:', error);
  });

Vesting Emissions

Get real-time vesting emission rates & project token releases for the next 2 years.

You can define the timestamp to get the emission rate for at the end of the URL as seen below.

Curl

curl -X GET "https://api.andromedaprotocol.io/v1/tokenomics/vesting-emission?timestamp=1721055818196"

Example

Get vesting emission per second for the timestamp 1731055818196.

import fetch from 'node-fetch';

// Define the API endpoint with the timestamp
const url = "https://api.andromedaprotocol.io/v1/tokenomics/vesting-emission?timestamp=1731055818196";

// Fetch data from the API
fetch(url)
  .then(response => {
    if (!response.ok) {
      throw new Error(`HTTP error! status: ${response.status}`);
    }
    return response.json();
  })
  .then(data => {
    // Check if 'vesting_emission_per_second' key exists in the data
    if (data.vesting_emission_per_second) {
      const vestingEmissionPerSecond = data.vesting_emission_per_second;
      console.log(`Vesting Emission Per Second: ${vestingEmissionPerSecond}`);
    } else {
      console.log('No vesting emission per second data found');
    }
  })
  .catch(error => {
    console.error('Error fetching data:', error);
  });

Last updated

Additional Resources

GithubWebsite