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

List epoch reward summaries

Get a list of reward summaries by epoch for a given range of epochs. The result is filtered by list of asset IDs, market IDs and starting and ending epochs, for which to return rewards. If no data is provided, all reward summaries will be returned, grouped by epochs, market IDs, asset IDs and reward type.

Query Parameters
    filter.assetIds string[]

    Restrict the results to those connected to the assets in this list. Pass an empty list for no filter.

    filter.marketIds string[]

    Restrict the results to those connected to the markets in this list. Pass an empty list for no filter.

    filter.fromEpoch uint64

    Optional range of epochs to filter on.

    filter.toEpoch uint64

    Epoch to which to filter rewards summaries.

    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.

Responses

A successful response.


Schema
    summaries object

    Page of rewards details for a single party and corresponding page information.

    edges object[]

    Page of rewards summary data for epochs and their corresponding cursors.

    cursor string
    node object

    Rewards summary data for epoch.

    amount string
    assetId string
    epoch uint64
    marketId string
    rewardType string
    pageInfo object

    Page information that is used for fetching further pages.

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