
get
/v4/users/{address}/rewards/earned
Rewards an address earned over the last 30 days, per chain, token and campaign: current settled rewards minus the rewards in the merkle root live 30 days ago. Rows of private or hidden-leaderboard campaigns appear only to a caller allowed to read them. Chains whose window-start tree cannot be read are listed in unavailableChainIds. Requires an API key.
Path parameters
addressstringrequired
User address
Query parameters
chainIdstring[]Filter by chain IDs
isTestbooleanInclude test tokens
Responses
200Response for status 200
Schema
object
addressstringrequired
windowSecondsnumberrequired
totalUSDnumberrequired
chainsobject[]required
chainIdnumberstartRootstring | nullstartTimestampnumber | nullendRootstringLive root the current amounts belong toendTimestampnumbertokensobject[]
addressstringsymbolstringdecimalsnumbericonstringpricenumber | nullamountstringAmount earned in the window, in token base unitsamountUSDnumbercampaignsobject[]
campaignIdstringamountstringunavailableChainIdsnumber[]required
Chains whose window-start tree cannot be readExample
{
"address": "string",
"windowSeconds": 0,
"totalUSD": 0,
"chains": [
{
"chainId": 0,
"startRoot": "string",
"startTimestamp": 0,
"endRoot": "string",
"endTimestamp": 0,
"tokens": [
{
"address": "string",
"symbol": "string",
"decimals": 0,
"icon": "string",
"price": null,
"amount": "string",
"amountUSD": 0,
"campaigns": [
null
]
}
]
}
],
"unavailableChainIds": [
0
]
}get
https://api.merkl.xyz/v4/users//rewards/earnedcurl -X GET "https://api.merkl.xyz/v4/users/0xd93814273b33DD33B32cD345225CfB65DEB048Dd/rewards/earned"