
/v4/historical/campaign/{campaignId}
Campaign reward diff between two trees (BETA)Historical Campaign Diff
Computes the difference in reward breakdowns for a given campaign between two merkle trees. Each tree is selected either by date (closest root on or before the date, via startDate/endDate) or by an explicit root hash (startRoot/endRoot). Returns per-recipient, per-reason breakdown diffs with non-zero changes only.
Authentication: Requires a valid API key passed via the Authorization header.
⚠️ Beta: this endpoint is in beta. The behavior, response shape and data format may change at any time without notice. Historical data is only available from the configured cutoff date onwards.
Path parameters
campaignIdstringQuery parameters
chainIdnumber | stringstartDatestringISO date or unix timestamp. One of startDate or startRoot required.
endDatestringISO date or unix timestamp. One of endDate or endRoot required.
startRootstringStart merkle root hash. One of startDate or startRoot required.
endRootstringEnd merkle root hash. One of endDate or endRoot required.
Responses
200Response for status 200
object
startRootobjectrequired
rootstringtimestampstringendRootobjectrequired
rootstringtimestampstringbreakdownsobject[]required
campaignIdstringrecipientstringreasonstringrewardTokenstringstartAmountstringCumulative reward amount at startDateendAmountstringCumulative reward amount at endDatediffstringDifference between endAmount and startAmount{
"startRoot": {
"root": "string",
"timestamp": "string"
},
"endRoot": {
"root": "string",
"timestamp": "string"
},
"breakdowns": [
{
"campaignId": "string",
"recipient": "string",
"reason": "string",
"rewardToken": "string",
"startAmount": "string",
"endAmount": "string",
"diff": "string"
}
]
}https://api.merkl.xyz/v4/historical/campaign/?chainId=curl -X GET "https://api.merkl.xyz/v4/historical/campaign/7772424586270261909?chainId=1"