Collection Holding Period

Shows count of unique wallets bucketed by how long they have held an NFT in a collection.

Examples

Get holding information for a specific collection

const axios = require("axios");

const url = "https://rest-api.hellomoon.io/v0/nft/collection/ownership/holding-period";

async function getHoldingPeriods() {
    const { data } = await axios.post(
        url,
        {
			"helloMoonCollectionId": "040de757c0d2b75dcee999ddd47689c4"
		},
        {
            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!