Merkl Developer Portal logo
get

/v4/rewards/rank

Returns the rank of a user in a campaign leaderboard, based on reward amount. Returns an empty array if the rank is not yet available.

Query parameters

chainIdnumber | string
required

Distribution chain ID (numeric, e.g. 1 for Ethereum). See ID types.

campaignIdstring
required

On-chain campaign ID (32-byte hex hash, e.g. 0x93cf385c...). NOT the internal Campaign.id. See ID types.

userAddressstring
required

Wallet address to look up rank for.

hideboolean

If true, excludes creator and admin from ranking (adjusts rank accordingly).