@@ -4,79 +4,9 @@ All URIs are relative to *https://mainnet.zklighter.elliot.ai*
44
55Method | HTTP request | Description
66------------- | ------------- | -------------
7- [ ** referral_has_referee_by_address** ] ( ReferralApi.md#referral_has_referee_by_address ) | ** GET** /api/v1/referral/hasRefereeByAddress | referral_hasRefereeByAddress
87[ ** referral_points** ] ( ReferralApi.md#referral_points ) | ** GET** /api/v1/referral/points | referral_points
98
109
11- # ** referral_has_referee_by_address**
12- > HasRefereeCode referral_has_referee_by_address(l1_address)
13-
14- referral_hasRefereeByAddress
15-
16- Does L1 address have referee code?
17-
18- ### Example
19-
20-
21- ``` python
22- import lighter
23- from lighter.models.has_referee_code import HasRefereeCode
24- from lighter.rest import ApiException
25- from pprint import pprint
26-
27- # Defining the host is optional and defaults to https://mainnet.zklighter.elliot.ai
28- # See configuration.py for a list of all supported configuration parameters.
29- configuration = lighter.Configuration(
30- host = " https://mainnet.zklighter.elliot.ai"
31- )
32-
33-
34- # Enter a context with an instance of the API client
35- async with lighter.ApiClient(configuration) as api_client:
36- # Create an instance of the API class
37- api_instance = lighter.ReferralApi(api_client)
38- l1_address = ' l1_address_example' # str |
39-
40- try :
41- # referral_hasRefereeByAddress
42- api_response = await api_instance.referral_has_referee_by_address(l1_address)
43- print (" The response of ReferralApi->referral_has_referee_by_address:\n " )
44- pprint(api_response)
45- except Exception as e:
46- print (" Exception when calling ReferralApi->referral_has_referee_by_address: %s \n " % e)
47- ```
48-
49-
50-
51- ### Parameters
52-
53-
54- Name | Type | Description | Notes
55- ------------- | ------------- | ------------- | -------------
56- ** l1_address** | ** str** | |
57-
58- ### Return type
59-
60- [ ** HasRefereeCode** ] ( HasRefereeCode.md )
61-
62- ### Authorization
63-
64- No authorization required
65-
66- ### HTTP request headers
67-
68- - ** Content-Type** : Not defined
69- - ** Accept** : application/json
70-
71- ### HTTP response details
72-
73- | Status code | Description | Response headers |
74- | -------------| -------------| ------------------|
75- ** 200** | A successful response. | - |
76- ** 400** | Bad request | - |
77-
78- [[ Back to top]] ( # ) [[ Back to API list]] ( ../README.md#documentation-for-api-endpoints ) [[ Back to Model list]] ( ../README.md#documentation-for-models ) [[ Back to README]] ( ../README.md )
79-
8010# ** referral_points**
8111> ReferralPoints referral_points(account_index, authorization=authorization, auth=auth)
8212
0 commit comments