Users
Rewards an address earned on one chain since 00:00 UTC 30 days ago, per token and campaign, optionally for one reward token. Rows of private or hidden-leaderboard campaigns appear only to a caller allowed to read them. When the route cannot answer for the chain yet, it is listed in unavailableChainIds. Requires an API key.
get/v4/users/{address}/rewards/chains/{chainId}/earned
Request
- Base URL: https://api.merkl.xyz (the document declares no server; this is the origin it was published from)
- URL: https://api.merkl.xyz/v4/users/{address}/rewards/chains/{chainId}/earned
- Auth: apiKey (a scheme the document does not define)
Path parameters
addressstring required
User address
Query parameters
isTestboolean
Include test tokens
tokenstring
Reward token address. Omit it to get every token.
Response
Response for status 200
Changes
- info
added the new optional
queryrequest parametertoken
- info
- breaking
pathrequest parameterchainIdlist-of-types was narrowed by removing typesnumber - warning
for the
pathrequest parameterchainId, the max was set to2147483647.00 - warning
for the
pathrequest parameterchainId, the min was set to1.00
- breaking