post https://rest-api.hellomoon.io/v0/staking/rewards
NOTE: This endpoint is only callable by API keys in the following tiers:
- Business
- Developer
- Enterprise
- PremiumSharedRpc
- StarterSharedRpc
- UltimateSharedRpc
Get information about block rewards given, 'Fee', 'Staking', and 'Voting'.
__Data goes back 30 days__Examples
Get rewards for an account
const axios = require("axios");
const url = "https://rest-api.hellomoon.io/v0/staking/rewards";
async function getRewards() {
    const { data } = await axios.post(
        url,
        {
			"pubkey": "E4vbW55NDqJgLyGmE7Y1xSNrXqgHZ328Pfzwcm5nMPzN"
		},
        {
            headers: {
                Accept: "application/json",
                "Content-Type": "application/json",
                Authorization: "Bearer <your_token>",
            },
        }
    );
    console.log(data);
}