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 freePublic display name and description metadata for an account or pool.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
by | query | strindex | l1_address | required | Lookup key ('index' or 'l1_address'). example: index |
value | query | str | required | Account 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"