Rewards
Get reward earnings
Get a wallet’s base-token earnings in one yield, grouped into UTC day, week or month buckets.
GET
Get bucketed reward earnings
Each bucket holds the earnings for that period only, not a running total, so add the buckets up for a cumulative figure. Choose the window with
period (1d, 7d, 30d, 90d, 1y, all; default 30d) or with from and to (ISO 8601). Each of from and to is optional on its own, and either one overrides period. from is floored to UTC midnight, so a from with a time component includes that whole UTC day. to defaults to now, is extended to the end of its UTC day, and is then clamped to the last aggregated hour. A to without from starts at the wallet’s first earnings bucket. interval sets the bucket size: day (default), week or month. period=all, or a to without from, defaults interval to week. A range of more than 366 buckets returns 400.
Earnings are aggregated hourly, so the newest bucket ends at the last aggregated hour. They are recorded only for wallets that have already used Yield.xyz on that network, from that point on, and earlier earnings are not backfilled. A yield without reward support returns 404. To read earnings for one of your allocator vaults, pass its feeConfigurationId; an id that is not one of your project’s fee configurations returns 400.
For preset windows (the last 24 hours, 7, 30 and 365 days from UTC midnight, and all time), use the reward earnings summary. For the yield’s rate over time rather than a wallet’s earnings, use reward rate history.Path Parameters
Query Parameters
Response
Bucketed non-cumulative earnings
Get bucketed reward earnings

