Summary
The rate limiter allows N requests per wallet per 60-second window and blocks subsequent requests with a 429. Unit tests should confirm the limiter counts correctly, resets after the window, and includes the correct Retry-After header on blocked responses.
Scope
- Test N requests within the window all succeed (200)
- Test the N+1th request is blocked with 429
- Test the response includes a
Retry-After header with the correct seconds remaining
- Test a request from a different wallet is not affected by another wallet's limit
- Test the counter resets and the next request succeeds after the window expires
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The rate limiter allows N requests per wallet per 60-second window and blocks subsequent requests with a 429. Unit tests should confirm the limiter counts correctly, resets after the window, and includes the correct
Retry-Afterheader on blocked responses.Scope
Retry-Afterheader with the correct seconds remainingAcceptance Criteria
Retry-Afterheader present and correct on 429 responseETA: 12 hours
Coordinate on Telegram