For the complete documentation index, see llms.txt. This page is also available as Markdown.

userReferrals

Get user referrals

get
/api/v1/referral/userReferrals
Query parameters
l1_addressstringRequired

Ethereum L1 wallet address.

cursorstringOptional

Opaque pagination cursor returned by the previous response; pass it unchanged.

stats_start_timestampinteger · int64Optional

Inclusive start of referral statistics, as a Unix timestamp in milliseconds.

stats_end_timestampinteger · int64Optional

End of referral statistics, as a Unix timestamp in milliseconds.

limitinteger · int64 · min: 1 · max: 300Optional

Maximum number of records to return.

is_eligiblebooleanOptional

Restrict statistics to users eligible for the referral program when true.

Default: false
Header parameters
authorizationstringRequired

Auth token in the Authorization header.

Responses
200

A successful response.

application/json
codeinteger · int32Required
messagestringOptional
cursorstringRequired
used_codestringRequired
used_code_eligiblebooleanRequired
l1_eligiblebooleanRequired

Whether the caller's L1 address is not excluded from the referee rebate, whether or not a referral code is bound yet. It does not check whether a code binding would be accepted.

get/api/v1/referral/userReferrals
GET /api/v1/referral/userReferrals?l1_address=text HTTP/1.1
Host: mainnet.zklighter.elliot.ai
authorization: text
Accept: */*
{
  "code": 1,
  "message": "text",
  "cursor": "text",
  "referrals": [
    {
      "l1_address": "text",
      "referral_code": "text",
      "used_at": 1,
      "trade_stats": {
        "count": 1,
        "volume": "text",
        "web_count": 1,
        "web_volume": "text",
        "mobile_app_count": 1,
        "mobile_app_volume": "text",
        "mobile_browser_count": 1,
        "mobile_browser_volume": "text",
        "maker_fees_paid": "text",
        "non_free_taker_volume": "text",
        "non_free_maker_volume": "text",
        "free_taker_volume": "text",
        "taker_fees_paid": "text",
        "free_maker_volume": "text"
      },
      "tier": "text",
      "source": "text",
      "live_points": 1,
      "weekly_points": 1
    }
  ],
  "used_code": "text",
  "totals": {
    "count": 1,
    "volume": "text",
    "free_maker_volume": "text",
    "free_taker_volume": "text",
    "non_free_maker_volume": "text",
    "non_free_taker_volume": "text",
    "maker_fees_paid": "text",
    "taker_fees_paid": "text",
    "total_referrals": 1,
    "total_premium_referrals": 1,
    "live_points": 1,
    "weekly_points": 1
  },
  "used_code_eligible": true,
  "l1_eligible": true
}

Last updated

Was this helpful?