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
Page of rewards data and corresponding page information.
edges object[]
Page of rewards data items and their corresponding cursors.
node object
Details for a single reward payment.
pageInfo object
Page information that is used for fetching further pages.
{
"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"
}