v1

latestOpenAPI 3.1.02026-07-24223580832.9 KB
Cardano Staking Reporting

Get the Historical Stake and Rewards for Multiple Pools

Returns the historical stake and rewards allocated to multiple staking pools.

post/v1/cardano/mainnet/pool/history

Query parameters

aggregateboolean

Set to true for the rewards to be aggregated across addresses.

Request body

fromTimeinteger required

The Unix timestamp in seconds from which you wish to retrieve rewards.

toTimeinteger required

The Unix timestamp in seconds until which rewards are retrieved.

timeUnit'epoch' | 'daily' | 'weekly' | 'monthly' required

Represents how the rewards are aggregated. Must be one of epoch, daily, weekly, or monthly.

addressesstring[] required

List of addresses to retrieve rewards for.

Example request

{
  "fromTime": 1577836800,
  "toTime": 1685491200
}

Response

Example response

{
  "rewards": [
    {
      "currency": "ADA",
      "metadata": {
        "commission": 0.01,
        "epoch": 348
      },
      "return": "500.000000",
      "startingBalance": "5004.058667",
      "timeAggregation": "weekly",
      "timeEnd": "2022-07-31T23:59:59.000Z",
      "timeStart": "2022-07-01T00:00:00.000Z"
    }
  ]
}