Program Stats

Program stats contains descriptive statistics on Solana programs looking back over various granularities such as

  • active users
  • new users
  • deposits / withdrawals
  • swaps

Examples

Get stats for Solend per 6-hours

const axios = require("axios");

const url = "https://rest-api.hellomoon.io/v0/defi/program-stats";

async function getStats() {
    const { data } = await axios.post(
        url,
        {
			"granularity": "SIX_HOUR",
			"programId": "So1endDq2YkqhipRh3WViPa8hdiSpxWy6z3Z6tMCpAo"
		},
        {
            headers: {
                Accept: "application/json",
                "Content-Type": "application/json",
                Authorization: "Bearer <your_token>",
            },
        }
    );

    console.log(data);
}
Language
Authorization
Bearer
JWT
Click Try It! to start a request and see the response here!