List historical rewards
Lists historical rewards on the Primary Network for the supplied addresses.
Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://build.avax.network/console/utilities/data-api-keys.
In: header
Path Parameters
Either mainnet or testnet/fuji.
"mainnet" | "fuji" | "testnet"Query Parameters
A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji". Optional, but at least one of addresses or nodeIds is required.
A page token, received from a previous list call. Provide this to retrieve the subsequent page.
The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
101 <= value <= 100A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the sortBy query parameter, if provided.
"asc" | "desc"The currency that return values should use. Defaults to USD.
"usd" | "eur" | "aud" | "cad" | "chf" | "clp" | "cny" | "czk" | "dkk" | "gbp" | "hkd" | "huf" | "jpy" | "nzd"Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://data-api.avax.network/v1/networks/mainnet/rewards?addresses=avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg&pageSize=10&nodeIds=NodeID-111111111111111111116DBWJs%2CNodeID-222222222222222222227DBWJs&sortOrder=asc¤cy=usd"{
"nextPageToken": "string",
"historicalRewards": [
{
"addresses": [
"avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg"
],
"txHash": "string",
"amountStaked": "string",
"nodeId": "string",
"startTimestamp": 0,
"endTimestamp": 0,
"rewardType": "VALIDATOR",
"utxoId": "string",
"outputIndex": 0,
"reward": {
"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"type": "secp256k1",
"amount": "5001000",
"historicalPrice": {
"currencyCode": "usd",
"value": "42.42"
}
},
"rewardTxHash": "string"
}
]
}{
"message": "string",
"statusCode": 400,
"error": "Bad Request"
}{
"message": "string",
"statusCode": 401,
"error": "Unauthorized"
}{
"message": "string",
"statusCode": 403,
"error": "Forbidden"
}{
"message": "string",
"statusCode": 404,
"error": "Not Found"
}{
"message": "string",
"statusCode": 429,
"error": "Too Many Requests"
}{
"message": "string",
"statusCode": 500,
"error": "Internal Server Error"
}{
"message": "string",
"statusCode": 502,
"error": "Bad Gateway"
}{
"message": "string",
"statusCode": 503,
"error": "Service Unavailable"
}Is this guide helpful?