
get
/v4/users/{address}/rewards/earned/timeline
Rewards an address earned per UTC day over the last 7 or 30 days (today included), in USD at the current price, per token across every chain. Built from merged roots only. Rows of private or hidden-leaderboard campaigns appear only to a caller allowed to read them. Chains the address earned on in the range whose history is not backfilled yet are not charted and are listed in unavailableChainIds.
Path parameters
addressstringrequired
User address
Query parameters
rangeenumDays to chart, today (UTC) included
chainIdsstring (integer) | integer[]Distribution chain IDs. Omit them to get every chain.
isTestbooleanInclude test tokens
Responses
200Response for status 200
Schema
object
bucket"day"required
rangeenumrequired
Days to chart, today (UTC) included7d30dtokensobject[]requiredToken series across all buckets (chart legend)
idstringStable chart series id (`chainId:tokenAddress`, or `__other__` for folded tokens)symbolstringToken symbol displayed in the chart legendchainIdnumberChain ID of the token; absent for synthetic series like `Other`addressstringToken address; absent for synthetic series like `Other`iconstringToken icon URL; absent for synthetic series like `Other`pricenumberCurrent token price in USD; absent when unpriced or for synthetic seriesbucketsobject[]requiredOne bucket per UTC day of the range, ascending. A value is signed: a recomputation can make a day negative
startnumberUnix timestamp (seconds) of the bucket start, UTC-alignedendnumberUnix timestamp (seconds) of the bucket end (exclusive)breakdownobject[]Per-token USD value, descending
tokenIdstringStable token series id matching an entry in `tokens`valuenumberUSD value earned in the bucketunavailableChainIdsnumber[]required
Chains the address earned on in the range that the route cannot chart yet: history not backfilledExample
{
"bucket": "day",
"range": "7d",
"tokens": [
{
"id": "string",
"symbol": "string",
"chainId": 0,
"address": "string",
"icon": "string",
"price": 0
}
],
"buckets": [
{
"start": 0,
"end": 0,
"breakdown": [
{
"tokenId": "string",
"value": 0
}
]
}
],
"unavailableChainIds": [
0
]
}get
https://api.merkl.xyz/v4/users//rewards/earned/timelinecurl -X GET "https://api.merkl.xyz/v4/users/0xd93814273b33DD33B32cD345225CfB65DEB048Dd/rewards/earned/timeline"