Program New Users

Shows new users of a program over time.
A new user is defined as the first time a publicKey has been a fee payer for this program address.

Examples

Get new users on a specific day for a program

const axios = require("axios");

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

async function getNewUsers() {
    const { data } = await axios.post(
        url,
        {
			"day": "2022-05-14T00:00:00.000Z",
			"programId": "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"
		},
        {
            headers: {
                Accept: "application/json",
                "Content-Type": "application/json",
                Authorization: "Bearer <your_token>",
            },
        }
    );

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