List rewards
Get a list of rewards that match the provided criteria. If no filter is provided, all rewards will be returned.
Query Parameters
Restrict rewards data to those that were received by the given party.
Restrict rewards data to those that were paid with the given asset ID.
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.
Whether to order the results with the newest records first. If not set, the default value is true.
Restrict rewards data to those that were paid after and including the given epoch ID.
Restrict rewards data to those that were paid up to and including the given epoch ID.
- 200
- 500
- default
A successful response.
Schema
rewards object
{
"rewards": {
"edges": [
{
"cursor": "string",
"node": {
"amount": "string",
"assetId": "string",
"epoch": "string",
"lockedUntilEpoch": "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://api.n00.testnet.vega.rocks/api/v2/rewards' \
-H 'Accept: application/json'
curl -L -X GET 'https://api.n00.testnet.vega.rocks/api/v2/rewards' \
-H 'Accept: application/json'
curl -L -X GET 'https://api.n00.testnet.vega.rocks/api/v2/rewards' \
-H 'Accept: application/json'
curl -L -X GET 'https://api.n00.testnet.vega.rocks/api/v2/rewards' \
-H 'Accept: application/json'