> 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/transactions/withdraw_history.md).

# withdraw\_history

Get withdraw history. Secure withdrawals are only set to `claimable` when ready. You should only expect the `completed` status on fast withdrawals. The filter supports all, pending and claimable; completed, failed and refunded cannot be selected individually.

```json
{"openapi":"3.0.0","info":{"title":"Lighter API","version":"1.0.0"},"tags":[{"name":"transactions"}],"servers":[{"url":"https://mainnet.zklighter.elliot.ai","description":"Lighter mainnet"},{"url":"https://api.testnet.lighter.xyz","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/withdraw/history":{"get":{"summary":"withdraw_history","operationId":"withdraw_history","tags":["transactions"],"description":"Get withdraw history. Secure withdrawals are only set to `claimable` when ready. You should only expect the `completed` status on fast withdrawals. The filter supports all, pending and claimable; completed, failed and refunded cannot be selected individually.","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"},"description":"Auth token in the Authorization header."},{"name":"account_index","in":"query","required":true,"schema":{"type":"integer","format":"int64"},"description":"Account index to query."},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"},"description":"Opaque pagination cursor returned by the previous response; pass it unchanged."},{"name":"filter","in":"query","required":false,"schema":{"type":"string","enum":["all","pending","claimable"]},"description":"Select the records to include using the listed filter values. Allowed values: all, pending, claimable."}],"responses":{"200":{"description":"A successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawHistory"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultCode"}}}}}}}},"components":{"schemas":{"WithdrawHistory":{"type":"object","properties":{"code":{"type":"integer","format":"int32"},"message":{"type":"string"},"withdraws":{"type":"array","items":{"$ref":"#/components/schemas/WithdrawHistoryItem"}},"cursor":{"type":"string"}},"title":"WithdrawHistory","required":["code","withdraws","cursor"]},"WithdrawHistoryItem":{"type":"object","properties":{"id":{"type":"string"},"amount":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"status":{"type":"string","enum":["failed","pending","claimable","refunded","completed"]},"type":{"type":"string","enum":["secure","fast"]},"l1_tx_hash":{"type":"string"},"l2_tx_hash":{"type":"string","description":"Hash of the L2 transaction that requested the withdrawal."},"l1_claim_tx_hash":{"type":"string","description":"L1 transaction that transferred the withdrawn funds to the wallet (the WithdrawPending event), whether sent by auto-claim or by the user. Empty until the withdrawal is claimed, and for withdrawals executed before claim indexing started."},"l1_claim_amount":{"type":"string","description":"Total amount paid out by l1_claim_tx_hash. One claim can pay several withdrawals of the same asset, so this can be larger than amount. Empty until claimed."},"asset_id":{"type":"integer","format":"int16"}},"title":"WithdrawHistoryItem","required":["id","amount","timestamp","status","type","l1_tx_hash","l2_tx_hash","l1_claim_tx_hash","l1_claim_amount","asset_id"]},"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/transactions/withdraw_history.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.
