Skip to content

fix: remove 9000 cap on offset for GET /v2/jettons/{account_id}/holders - #943

Merged
alpinskiy-top merged 1 commit into
masterfrom
malpinskiy/work
Aug 7, 2026
Merged

alpinskiy-top merged 1 commit into
masterfrom
malpinskiy/work

Conversation

@alpinskiy-top

Copy link
Copy Markdown
Collaborator

The maximum was set at the spec level and enforced by generated request validation, rejecting offsets above 9000 before the handler ever ran. Neither the handler nor the underlying SQL query impose any bound of their own, so there's no reason to cap pagination depth here.

The maximum was set at the spec level and enforced by generated request
validation, rejecting offsets above 9000 before the handler ever ran.
Neither the handler nor the underlying SQL query impose any bound of
their own, so there's no reason to cap pagination depth here.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@alpinskiy-top
alpinskiy-top merged commit 7375d82 into master Aug 7, 2026
1 check passed
@alpinskiy-top
alpinskiy-top deleted the malpinskiy/work branch August 7, 2026 10:52
@mr-tron

mr-tron commented Aug 8, 2026

Copy link
Copy Markdown
Contributor
user@laptop ~ % time curl -s 'https://tonapi.io/v2/jettons/EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs/holders?offset=3&limit=1' >/dev/null
curl -s  > /dev/null  0.02s user 0.01s system 15% cpu 0.165 total
user@laptop ~ % time curl -s 'https://tonapi.io/v2/jettons/EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs/holders?offset=30&limit=1' >/dev/null
curl -s  > /dev/null  0.02s user 0.01s system 11% cpu 0.217 total
user@laptop ~ % time curl -s 'https://tonapi.io/v2/jettons/EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs/holders?offset=300&limit=1' >/dev/null
curl -s  > /dev/null  0.01s user 0.01s system 15% cpu 0.161 total
user@laptop ~ % time curl -s 'https://tonapi.io/v2/jettons/EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs/holders?offset=3000&limit=1' >/dev/null
curl -s  > /dev/null  0.02s user 0.01s system 0% cpu 4.246 total
user@laptop ~ % time curl -s 'https://tonapi.io/v2/jettons/EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs/holders?offset=30000&limit=1' >/dev/null
curl -s  > /dev/null  0.01s user 0.01s system 0% cpu 6.507 total
user@laptop ~ % time curl -s 'https://tonapi.io/v2/jettons/EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs/holders?offset=300000&limit=1' >/dev/null
curl -s  > /dev/null  0.01s user 0.01s system 0% cpu 18.563 total
user@laptop ~ % time curl -s 'https://tonapi.io/v2/jettons/EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs/holders?offset=3000000&limit=1' >/dev/null
curl -s  > /dev/null  0.02s user 0.01s system 0% cpu 30.410 total

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