cURL
curl --request POST \ --url https://api.tokenlayer.network/get-leaderboard \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "limit": 100, "offset": 0, "network_mode": "both" } '
{ "leaderboard": [ { "rank": 123, "recipient_address": "<string>", "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "username": "<string>", "profile_picture": "<string>", "total_earned_all_tokens": 123, "unique_chains_count": 123, "chain_balances": [ { "chain": "<string>", "balance": 123 } ] } ], "pagination": { "limit": 123, "offset": 123, "total": 123, "has_more": true } }
Get ranked leaderboard of top earners across all tokens and chains
JWT token or API key
1 <= x <= 1000
x >= 0
testnet
mainnet
both
Successful response
Show child attributes