Skip to content

Latest commit

 

History

History
84 lines (56 loc) · 2.57 KB

File metadata and controls

84 lines (56 loc) · 2.57 KB

lighter.NotificationApi

All URIs are relative to https://mainnet.zklighter.elliot.ai

Method HTTP request Description
notification_ack POST /api/v1/notification/ack notification_ack

notification_ack

ResultCode notification_ack(notif_id, account_index, authorization=authorization, auth=auth)

notification_ack

Ack notification

Example

import lighter
from lighter.models.result_code import ResultCode
from lighter.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://mainnet.zklighter.elliot.ai
# See configuration.py for a list of all supported configuration parameters.
configuration = lighter.Configuration(
    host = "https://mainnet.zklighter.elliot.ai"
)


# Enter a context with an instance of the API client
async with lighter.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = lighter.NotificationApi(api_client)
    notif_id = 'notif_id_example' # str | 
    account_index = 56 # int | 
    authorization = 'authorization_example' # str |  make required after integ is done (optional)
    auth = 'auth_example' # str |  made optional to support header auth clients (optional)

    try:
        # notification_ack
        api_response = await api_instance.notification_ack(notif_id, account_index, authorization=authorization, auth=auth)
        print("The response of NotificationApi->notification_ack:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling NotificationApi->notification_ack: %s\n" % e)

Parameters

Name Type Description Notes
notif_id str
account_index int
authorization str make required after integ is done [optional]
auth str made optional to support header auth clients [optional]

Return type

ResultCode

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 A successful response. -
400 Bad request -

[Back to top] [Back to API list] [Back to Model list] [Back to README]