Collection Current Owners

Shows number of distinct wallets that currently own an NFT in a collection

Examples

Get current owner count for a collection

const axios = require("axios");

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

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