Document Forno's eth_getLogs 5,000-block limit and how to read longer history

Đang mở Phù hợp với người mới
#2,458 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

@szapelao đang làm issue này rồi.

Từ ngày 23/11/2026.

  • #2459 của @szapelao — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
86/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
markdown
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu tại /build/tools/nodes/forno và thêm giới hạn 5.000 block của mainnet, lỗi chính xác -32602, khác biệt 50.000 block của Celo Sepolia, và các route SQD/Chainstack cho lịch sử dài hơn. Xác minh ví dụ SQD đúng như đã viết, sau đó cập nhật /build/tools/indexers/overview để liệt kê SQD và /build/tools/nodes/overview để ghi chú quyền truy cập theo từng request của Chainstack thông qua buy. Kết thúc bằng cách chạy mint broken-links và kiểm tra các mục definition-of-done.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

chore priority:medium status: triage
What needs to be done?

The Forno page states the eth_getLogs range limit and lists ways to read a longer history, and SQD appears in the indexer list.

Today no page in the docs mentions the limit. On Celo mainnet, Forno rejects any eth_getLogs range over 5,000 blocks, while Celo Sepolia accepts 50,000, so code tested on testnet fails on mainnet. Two routes through the buy gateway read longer ranges (SQD with no payment; Chainstack at $0.01 per batch of up to 2,000 calls), and SQD is not in /build/tools/indexers/overview.

Evidence, 2026-11-23:

  • Forno mainnet, 5,000 blocks: {"jsonrpc":"2.0","result":[],"id":1}. 5,001 blocks: {"jsonrpc":"2.0","error":{"code":-32602,"message":"query exceeds range, retry smaller (max block range 5000, got 5001)"},"id":1}
  • Forno Celo Sepolia, 50,000 blocks: {"jsonrpc":"2.0","result":[],"id":1}
  • SQD through https://gateway.usebuy.ai/sqd/datasets/celo-mainnet/stream, USDC Transfer, blocks 83,400,000 to 83,450,000: 2,349 logs in one request, no payment. Over blocks 83,400,000 to 83,405,000, its 219 logs equal Forno's 219. The upstream answered 529 on most first attempts.
  • Chainstack through https://gateway.usebuy.ai/chainstack/celo: 402 for $0.01 per batch of up to 2,000 calls. A paid batch (tx 0x4d4eba7c38f95cd6d29c281e708fcee46ff00591c906e833ee84764032847ff0) returned logs for 5,001 blocks and -32602 Block range limit exceeded for 50,000 and 500,000.

Same change in the Celopedia skill: celo-org/celopedia-skills#119.

Definition of done
  • /build/tools/nodes/forno has an eth_getLogs block range limit section with the exact error, the Celo Sepolia difference and the routes for longer history
  • The SQD example on that page runs as written
  • /build/tools/indexers/overview lists SQD
  • The Chainstack entry in /build/tools/nodes/overview mentions per-request access through buy
  • mint broken-links passes
Priority

medium

Size

S — hours

Ngôn ngữ chính
MDX
Star
90
Fork
398
Merge trung bình
4 ngày 22 giờ
Pull request đã merge (30 ngày)
22

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của celo-org/docs

Tất cả issue của celo-org/docs

Issue tương tự

Thêm issue về Documentation

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.