### API Parameters

#### aggregate  
**boolean**  
Set to `true` for the rewards to be aggregated across addresses.

---  
#### fromTime  
**int64**  
**required**  
Defaults to 1577836800  
The Unix timestamp in seconds from which you wish to retrieve rewards.

---  
#### toTime  
**int64**  
**required**  
Defaults to 1685491200  
The Unix timestamp in seconds until which rewards are retrieved.

---  
#### timeUnit  
**string**  
**enum**  
**required**  
Represents how the rewards are aggregated. Must be one of `epoch`, `daily`, `weekly`, or `monthly`.

---  
#### addresses  
**array of strings**  
**required**  
Defaults to pool10gllgflzl3ngg0fj2xas9hfww25zxn2fdwtc0gd44am92pdlr7p,pool1f4lvg6px40kelh4kala6jxn6fnugtyhrtw6hgzgr7ar7ymtr7jd  
List of addresses to retrieve rewards for.

---

### Response Codes  
- `200`
- `400` Invalid request
- `404` Resource not found

---  
### Example Request

```shell
curl --request POST \
     --url https://svc.blockdaemon.com/reporting/staking/v1/cardano/mainnet/pool/history \
     --header 'X-API-Key: ••••' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "fromTime": 1577836800,
  "toTime": 1685491200,
  "timeUnit": "epoch",
  "addresses": [
    "pool10gllgflzl3ngg0fj2xas9hfww25zxn2fdwtc0gd44am92pdlr7p",
    "pool1f4lvg6px40kelh4kala6jxn6fnugtyhrtw6hgzgr7ar7ymtr7jd"
  ]
}
'  
```

### Allowed Time Units
- `epoch`
- `daily`
- `weekly`
- `monthly`

---  
### Updated  
Updated 2 months ago
