GET /api/v1/accountsByL1Address
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/lighter/api/v1/accountsByL1AddressCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeResolve all Lighter account and subaccount indexes belonging to an L1 Ethereum address.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
l1_address | query | str | required | Ethereum L1 0x address. example: 0x0000000000000000000000000000000000000000 |
cursor | query | str | optional | Pagination cursor. |
Response
type: object
data key: sub_accounts
pagination: none
sample: {
"code": "int",
"l1_address": "str",
"sub_accounts": "array[6]"
}
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/accountsByL1Address?l1_address=0x0000000000000000000000000000000000000000"