Lighter icon

Lighter

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

Account → Get Account Metadata

AI-generated

Summary

Fetch account metadata from the Lighter DEX API.

Inputs

  • accountIndex — The index of the account to retrieve metadata for. Defaults to 0.

Output shape

object

The raw JSON response from the /api/v1/accountMetadata endpoint, reflecting the account's metadata as stored on the Lighter DEX backend.

Examples

Example 1: Retrieve metadata for the default (index 0) account.

No additional parameters needed; the node uses the default account index 0.

Links

Discussion