> For the complete documentation index, see [llms.txt](https://docs.lighter.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lighter.xyz/api/fee-credits/leases.md).

# leases

Returns paginated lease entries for an account, most recent first. Supports read-only auth via signature/account\_index/timestamp query params.

```json
{"openapi":"3.0.0","info":{"title":"Lighter API","version":"1.0.0"},"tags":[{"name":"fee-credits"}],"servers":[{"url":"https://mainnet.zklighter.elliot.ai","description":"Lighter mainnet"},{"url":"https://testnet.zklighter.elliot.ai","description":"Lighter testnet"},{"url":"https://api.rh.lighter.xyz","description":"Lighter on Robinhood Chain mainnet"},{"url":"https://api.rh-testnet.lighter.xyz","description":"Lighter on Robinhood Chain testnet"}],"paths":{"/api/v1/leases":{"get":{"summary":"leases","operationId":"leases","tags":["fee-credits"],"description":"Returns paginated lease entries for an account, most recent first. Supports read-only auth via signature/account_index/timestamp query params.","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string"},"description":"API token authorization"},{"name":"account_index","in":"query","required":true,"schema":{"type":"integer","format":"int64"},"description":"Account index to fetch leases for"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"},"description":"Pagination cursor from a previous response"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"format":"uint64","minimum":1,"maximum":100},"description":"Number of results to return (1–100, default 20)"}],"responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespGetLeases"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultCode"}}}}}}}},"components":{"schemas":{"RespGetLeases":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"leases":{"type":"array","items":{"$ref":"#/components/schemas/LeaseEntry"}},"next_cursor":{"type":"string","description":"Cursor to pass as the cursor param to fetch the next page. Absent if no more pages."}},"required":["code","leases"]},"LeaseEntry":{"type":"object","properties":{"id":{"type":"integer","format":"int64","description":"Lease ID"},"master_account_index":{"type":"integer","format":"int64","description":"Master account index"},"lease_amount":{"type":"integer","format":"int64","description":"Leased LIT amount in raw units (1 LIT = 1e8)"},"fee_amount":{"type":"integer","format":"int64","description":"Fee paid in raw units"},"start":{"type":"integer","format":"int64","description":"Lease start time (Unix milliseconds)"},"end":{"type":"integer","format":"int64","description":"Lease end time (Unix milliseconds)"},"status":{"type":"string","enum":["waiting_fee","leased","expired","canceled"],"description":"Lease status"},"error":{"type":"string","description":"Error message if lease was canceled"}},"required":["end","error","fee_amount","id","lease_amount","master_account_index","start","status"]},"ResultCode":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"}},"title":"ResultCode","required":["code"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.lighter.xyz/api/fee-credits/leases.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
