# Returns a time series of daily annualized staking reward rates

## figment

### boolean
If `true`, returns reward rates for Figment validators. If not, returns reward rates for the ETH network.

### avg
If `7d`, returns the 7 days moving average. If not, returns the daily spot rates.

### Allowed:
`7d`

### decimal
Specifies the number of desired decimal to be returned. Accepts values between 2 (default) and 5.

---

# ``200      List of rewards rates by date.

### object

#### data
- array of objects

##### data
- object 
  - date: string
    - Timestamp for the day in format "YYYY-MM-DD"
  - value: string
    - The total annualized reward rate for that day - in %.
  - consensus: string
    - The piece due to consensus layer rewards (inflation) - in %.
  - execution: string
    - The piece due to execution layer rewards (transaction fees) - in %.

# ``400      Parameter error

# ``401      Unauthorized

# ``500      System error

---

### Example Request
```bash
curl --request GET \
     --url https://api.figment.io/ethereum/rewards_rates \
     --header 'accept: application/json' \
     --header 'x-api-key: your-api-key-here'
```

### Example Response
```json
{
  "data": [
    {
      "date": "2023-05-01",
      "value": "6.73",
      "consensus": "3.81",
      "execution": "2.92"
    }
  ]
}
```
