Skip to main content
POST
/
get-user-fee-history
Get user fee distribution history
curl --request POST \
  --url https://api.tokenlayer.network/get-user-fee-history \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "fee_type": "builder",
  "chains": [
    "<string>"
  ],
  "limit": 50,
  "offset": 0
}
'
{
  "distributions": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "recipient_address": "<string>",
      "distribution_type": "owner",
      "fee_type": "builder",
      "activity_id": "bonding_curve_trade",
      "amount": "<string>",
      "amount_with_decimals": "<string>",
      "decimals": 123,
      "currency_address": "<string>",
      "chain": "<string>",
      "tracking_id": "<string>",
      "transaction_hash": "<string>",
      "block_number": 123,
      "created_at": "<string>",
      "token": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>",
        "symbol": "<string>",
        "slug": "<string>",
        "logo": "<string>"
      }
    }
  ],
  "total_count": 123
}

Authorizations

Authorization
string
header
required

JWT token or API key

Body

application/json
user_id
string<uuid>
fee_type
enum<string>
Available options:
builder,
token_referral,
ip_holder,
protocol_referral,
protocol_referral_cashback
chains
string[]
limit
number
default:50
Required range: 1 <= x <= 100
offset
number
default:0
Required range: x >= 0

Response

Successful response

distributions
object[]
required
total_count
number
required