List rewards
Get a list of rewards that match the provided criteria. If no filter is provided, all rewards will be returned.
Query Parameters
Party ID for which to get the list of rewards.
Asset ID for which to get the list of rewards, if provided.
Number of records to be returned that sort greater than row identified by cursor supplied in 'after'.
If paging forwards, the cursor string for the last row of the previous page.
Number of records to be returned that sort less than row identified by cursor supplied in 'before'.
If paging forwards, the cursor string for the first row of the previous page.
Newest records first, older records last, default is true.
Epoch from which to list the rewards, if provided.
Epoch up-to-which to list the rewards, if provided.
- 200
- 500
- default
A successful response.
Schema
rewards object
{
"rewards": {
"edges": [
{
"cursor": "string",
"node": {
"amount": "string",
"assetId": "string",
"epoch": "string",
"marketId": "string",
"partyId": "string",
"percentageOfTotal": "string",
"receivedAt": "string",
"rewardType": "string"
}
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
}
}
}
An internal server error
Schema
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
An unexpected error response.
Schema
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
GET /api/v2/rewards
Request
Request
curl -L -X GET 'https://vega-mainnet-data.commodum.io/api/v2/rewards' \
-H 'Accept: application/json'
curl -L -X GET 'https://vega-mainnet-data.commodum.io/api/v2/rewards' \
-H 'Accept: application/json'
curl -L -X GET 'https://vega-mainnet-data.commodum.io/api/v2/rewards' \
-H 'Accept: application/json'
curl -L -X GET 'https://vega-mainnet-data.commodum.io/api/v2/rewards' \
-H 'Accept: application/json'