Get reward earnings summary
Get a wallet’s base-token earnings in one yield over preset windows: the last 24 hours, 7, 30 and 365 days from UTC midnight, and all time.
last24H is the 24 hourly rows ending at the hour that contains the request, clipped to the last aggregated hour. last7D, last30D and lastYear start at midnight UTC 7, 30 and 365 days before the request, so last7D covers seven full UTC days plus today so far, and lastYear is 365 days rather than a calendar year. total is all earnings through the last aggregated hour. Amounts are signed decimal strings, with amountRaw in base units.
The same coverage rules apply as for reward earnings: earnings are recorded only for wallets that have already used Yield.xyz on that network, from that point on, a yield without reward support returns 404, and feeConfigurationId selects one of your allocator vaults.Authorizations
Path Parameters
The unique identifier of the yield
"ethereum-usdc-morpho-vault"
Query Parameters
Wallet address to fetch earnings for
"0x742d35cc6634c0532925a3b844bc454e4438f44e"
Fee configuration ID used to resolve the partner allocator vault. An id that is not one of the project fee configurations is rejected.
"66f299cd-aaaa-bbbb-cccc-d1f26e3a02db"
Response
Fixed-window earnings
"ethereum-usdc-morpho-vault"
"0x742d35cc6634c0532925a3b844bc454e4438f44e"
24 hourly earnings rows ending at the hour that contains the request, clipped to the last aggregated hour. The hour that started exactly 24 hours earlier is excluded. Zero when the last aggregated hour is older than that window.
Earnings from midnight UTC 7 days before the request through the last aggregated hour. That is seven full UTC days plus the partial day up to the last aggregated hour, not a rolling 168 hours. Zero when the last aggregated hour is older than the window start.
Earnings from midnight UTC 30 days before the request through the last aggregated hour. Same calendar rule as last7D, not a rolling 720 hours.
Earnings from midnight UTC 365 days before the request through the last aggregated hour. This is a fixed 365 days, not a calendar year, so a leap day is not added.
All earnings through the last aggregated hour.

