Skip to content

fix: correct pagination limits for getLedgers and getTransactions in OpenRPC spec#2290

Open
miguelnietoa wants to merge 1 commit intostellar:mainfrom
miguelnietoa:fix/openrpc-getledgers-gettransactions-pagination-limits
Open

fix: correct pagination limits for getLedgers and getTransactions in OpenRPC spec#2290
miguelnietoa wants to merge 1 commit intostellar:mainfrom
miguelnietoa:fix/openrpc-getledgers-gettransactions-pagination-limits

Conversation

@miguelnietoa
Copy link
Contributor

The pagination limit descriptions for getLedgers and getTransactions reference a maximum of 10,000, but the actual defaults in https://github.com/stellar/stellar-rpc/blob/1a9a97b3f533f91c509661094e71b269d33b735a/cmd/stellar-rpc/internal/config/options.go are:

  • getEvents: max 10,000, default 100 (correct in docs)
  • getLedgers: max 200, default 50
  • getTransactions: max 200, default 50

Confirmed empirically against both testnet (soroban-testnet.stellar.org) and mainnet (soroban-rpc.mainnet.stellar.gateway.fm) - requesting limit=201 returns "limit must not exceed 200".

Copilot AI review requested due to automatic review settings March 3, 2026 00:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR corrects the pagination limit parameter descriptions in the Stellar RPC OpenRPC specification so they match the actual server-enforced defaults and maximums for getLedgers and getTransactions.

Changes:

  • Update getLedgers pagination limit description to max 200 / default 50.
  • Update getTransactions pagination limit description to max 200 / default 50.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@briwylde08 briwylde08 requested a review from ElliotFriend March 3, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants