Actions46
- Account Actions
- Market Actions
- Order Actions
- Position Actions
- Trade Actions
- Trading Actions
- Transaction Actions
- System Actions
Account → Get Account Metadata
AI-generatedSummary
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/accountMetadataendpoint, 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.