Skip to main content
POST
/
get-user-fees
Get user fee balances
curl --request POST \
  --url https://api.tokenlayer.network/get-user-fees \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "chains": [
    "<string>"
  ]
}
'
{
  "balances": [
    {
      "currency_address": "<string>",
      "chain": "<string>",
      "total_earned": "<string>",
      "claimable_amount": "<string>",
      "total_earned_with_decimals": "<string>",
      "claimable_amount_with_decimals": "<string>",
      "decimals": 123,
      "last_distribution_at": "<string>"
    }
  ],
  "summary": {
    "total_traders_referred": 123,
    "total_rewards_earned_usd": "<string>",
    "total_claimable_usd": "<string>"
  }
}

Authorizations

Authorization
string
header
required

JWT token or API key

Body

application/json
user_id
string<uuid>
chains
string[]

Response

Successful response

balances
object[]
required
summary
object
required