I am running my own stellar node and horizon instance. When I try to get over 200 entities at once I get the error

curl -X GET "http://localhost:8000/transactions?cursor=&limit=201"
  "type": "https://stellar.org/horizon-errors/bad_request",
  "title": "Bad Request",
  "status": 400,
  "detail": "The request you sent was invalid in some way.",
  "extras": {
    "invalid_field": "limit",
    "reason": "limit 201 is greater than limit max of 200"

Is there any way of increasing this limit?

  • 3
    Looks like the constant is defined as MaxPageSize in services/horizon/internal/db2/page_query.go. – Francesco Oct 28 '19 at 20:08

As mentioned in the comments, this number is hard-coded in Horizon so can't be changed without recompiling. What's your use case for wanting to change it? If you run your own Horizon instance you can remove rate limiting and make as many requests as you like.


Horizon response contains navigation links. Use them to retrieve next or previous results page.

Serving huge batches form the server is usually discouraged as both a client and server spend to much resources for results serialization/deserialization.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.