Block Rewards

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);
}
Language
Authorization
Bearer
JWT
Click Try It! to start a request and see the response here!