GET /api/v1/accountMetadata

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/lighter/api/v1/accountMetadataCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Public display name and description metadata for an account or pool.

Parameters

nameintypedescription
byquerystr
index | l1_address
requiredLookup key ('index' or 'l1_address').
example: index
valuequerystrrequiredAccount index or L1 address.
example: 281474976710654

Response

type: object
data key: account_metadatas
pagination: none
sample: {
  "code": "int",
  "account_metadatas": "array[1]"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/lighter/api/v1/accountMetadata?by=index&value=281474976710654"