List rewards
GEThttps://croissant.network/api/v2/rewards
Get a list of rewards that match the provided criteria. If no filter is provided, all rewards will be returned.
Request
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.
Filter for rewards paid if the party is a member of the given team.
Filter for rewards paid if the party participated in the given game.
Whether to return all derived parties from AMMs for the given party.
Filter the rewards by market ID.
Responses
- 200
- 500
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
rewards object
{
"rewards": {
"edges": [
{
"cursor": "string",
"node": {
"amount": "string",
"assetId": "string",
"epoch": "string",
"gameId": "string",
"lockedUntilEpoch": "string",
"marketId": "string",
"partyId": "string",
"percentageOfTotal": "string",
"quantumAmount": "string",
"receivedAt": "string",
"rewardType": "string",
"teamId": "string"
}
}
],
"pageInfo": {
"endCursor": "string",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string"
}
}
}
An internal server error
- application/json
- Schema
- Example (from schema)
Schema
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
details object[]
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
- curl
- python
- go
- nodejs
- CURL
curl -L -X GET 'https://croissant.network/api/v2/rewards' \
-H 'Accept: application/json'