Lighter icon

Lighter

Interact with Lighter (zkLighter) DEX API - High-performance perpetuals trading

Account → Get API Keys

AI-generated

Summary

Retrieve API key information for a specified account index and key index from the Lighter DEX API.

Inputs

  • accountIndex — The account index to query API keys for. Defaults to 0 when not specified. The account index selects which account's API keys to retrieve from the Lighter system. Appears in the UI when resource is 'account' and operation is 'getApiKeys' or 'getNextNonce'.
  • apiKeyIndexParam — The API key index to retrieve. Defaults to 3. Valid values range from 3 to 254. Selects which specific API key entry to fetch. Appears in the UI when resource is 'account' and operation is 'getApiKeys' or 'getNextNonce'.

Output shape

object

The Lighter node returns the raw JSON response from the /api/v1/apikeys endpoint. The exact structure of the returned object is determined by the upstream Lighter API. If the node is configured to continue on failure, any errors are returned as { error: error.message } paired with the corresponding input item.

Examples

Example 1: Get API keys for the default account (index 0) with the default key index (3)

Leave accountIndex and apiKeyIndexParam at their defaults, or set accountIndex to the desired account number and apiKeyIndexParam to the desired key number (3-254).

Links

Discussion