GET /api/v1/nextNonce
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/lighter/api/v1/nextNonceCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeNext expected L2 transaction nonce for an account and API key index.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
account_index | query | int | required | Account index. example: 281474976710654 |
api_key_index | query | int | required | API key slot index (0..254). example: 0 |
Response
type: object
pagination: none
sample: {
"code": "int",
"nonce": "int"
}
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/nextNonce?account_index=281474976710654&api_key_index=0"