post https://rest-api.hellomoon.io/v0/nft/sales/primary
The NFT Primary Sales endpoint captures the moment that the NFT was minted for a collection.
View key data fields such as what NFT was minted, the mintProgram or launchpad, who minted the NFT, and the amount it cost to mint.
Data goes back 30 days
Examples
Get new mints on a program
const axios = require("axios");
const url = "https://rest-api.hellomoon.io/v0/nft/sales/primary";
async function getCandyMachineV2Mints() {
const { data } = await axios.post(
url,
{
"mintProgram": "cndy3Z4yapfJBmL3ShUp5exZKqR3z33thTzeNMm2gRZ"
},
{
headers: {
Accept: "application/json",
"Content-Type": "application/json",
Authorization: "Bearer <your_token>",
},
}
);
console.log(data);
}