post https://rest-api.hellomoon.io/v0/defi/program-stats/top-tokens
Shows the top tokens per program as defined by volume in the past 24 hours
Volume here is defined as USD value of token transfers that occured within the same transaction as a call to this program.
Examples
Get top tokens on Orca
const axios = require("axios");
const url = "https://rest-api.hellomoon.io/v0/defi/program-stats/top-tokens";
async function getTopTokens() {
const { data } = await axios.post(
url,
{
"programId": "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"
},
{
headers: {
Accept: "application/json",
"Content-Type": "application/json",
Authorization: "Bearer <your_token>",
},
}
);
console.log(data);
}