> For the complete documentation index, see [llms.txt](https://docs.validationcloud.io/v1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.validationcloud.io/v1/stellar/horizon-api/ledgers/list-all-ledgers.md).

# List All Ledgers

This endpoint lists all ledgers and can be used in streaming mode. Streaming mode allows you to listen for new ledgers as they close. If called in streaming mode, Horizon will start at the earliest known ledger unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream ledgers since your request time.

This method will use `20` [Compute Units](/v1/about/billing.md).

***

## Reference: [Here](https://developers.stellar.org/network/horizon/api-reference/resources/list-all-ledgers)

{% openapi src="/files/9L0w2HNyHURBIA6Y2MBg" path="/ledgers" method="get" %}
[horizon-openapi\_vc.yml](https://1292504766-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF3uvE671dWWOTAu9svnI%2Fuploads%2FZki9Dvj0W61fX9Jyhir7%2Fhorizon-openapi_vc.yml?alt=media\&token=e5961be6-b70d-4c20-8f54-996e04e8ac21)
{% endopenapi %}
