List pending rewards
Changed onLists pending rewards on the Primary Network for the supplied addresses.
Request
- Base URL: https://data-api.avax.network
- URL: https://data-api.avax.network/v1/networks/{network}/rewards:listPending
- Auth: one of:
- API key in header x-glacier-api-key
- none
Path parameters
Either mainnet or testnet/fuji.
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". 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.
A comma separated list of node ids to filter by. 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.
Response
Successful response
Example response
{
"pendingRewards": [
{
"addresses": [
"avax1h2ccj9f5ay5acl6tyn9mwmw32p8wref8vl8ctg"
],
"estimatedReward": {
"assetId": "th5aLdWLi32yS9ED6uLGoMMubqHjzMsXhKWwzP6yZTYQKYzof",
"name": "Avalanche",
"symbol": "AVAX",
"denomination": 9,
"amount": "5001000"
}
}
]
}Changes
- info
added the required property
//to the response with the status
- info