Skip to main content
Version: mainnet (v0.71)

List rewards

Get a list of rewards that match the provided criteria. If no filter is provided, all rewards will be returned.

Query Parameters
    partyId string

    Party ID for which to get the list of rewards.

    assetId string

    Asset ID for which to get the list of rewards, if provided.

    pagination.first int32

    Number of records to be returned that sort greater than row identified by cursor supplied in 'after'.

    pagination.after string

    If paging forwards, the cursor string for the last row of the previous page.

    pagination.last int32

    Number of records to be returned that sort less than row identified by cursor supplied in 'before'.

    pagination.before string

    If paging forwards, the cursor string for the first row of the previous page.

    pagination.newestFirst boolean

    Newest records first, older records last, default is true.

    fromEpoch uint64

    Epoch from which to list the rewards, if provided.

    toEpoch uint64

    Epoch up-to-which to list the rewards, if provided.

Responses

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.

    cursor string
    node object

    Details for a single reward payment.

    amount string
    assetId string
    epoch uint64
    marketId string
    partyId string
    percentageOfTotal string
    receivedAt int64
    rewardType string
    pageInfo object

    Page information that is used for fetching further pages.

    endCursor string
    hasNextPage boolean
    hasPreviousPage boolean
    startCursor string
Loading...