GET /contracts/{contractAddress}/transfers validates timestampFrom and
timestampTo as you send them. It no longer adjusts them silently.
What to Do
- Send the first request without
timestampFromortimestampTo. You get the latest 90 days of transfers. - Read
rangefrom the response. It holds the timestamps of the contract’s first and latest transfer. If both arenull, the contract has no transfers of that type. - Request windows that fall inside
rangeand are no longer than 90 days. - For a longer period, split it into several windows of up to 90 days each.
1700000000 and end no later than 1782000000.
Compatibility Note
This change was not fully backward-compatible for clients that relied on the API correcting their timestamps. The rules are now explicit and predictable. If your integration sent windows that were invalid or too large, you now receive:400whentimestampFromis aftertimestampTo, or when both are sent and are more than 90 days apart.200with emptyitemsand therangeobject when a timestamp falls outside the contract’s transfer activity.
Time-Window Rules
- No transfers at all: the response has empty
items, and bothrangevalues arenull. - Order:
timestampFrommust not be aftertimestampTo. Otherwise the API returns400. - Outside the activity range: if a timestamp you send is before the first transfer or after
the latest one, the response is
200with emptyitemsandrange. - Maximum span: when you send both timestamps, they can be at most 90 days apart. A larger
span returns
400. - Only
timestampFromsent: the window ends 90 days later, or at the latest transfer if that comes sooner. - Only
timestampTosent: the window starts 90 days earlier, or at the first transfer if that comes later. - Neither sent: the window is the latest 90 days of activity.
- Every response includes
range, so you can always see the valid bounds.
What Changed from Previous Behavior
The API no longer:- Moves
timestampFromforward when it is before the first transfer. - Caps a future
timestampToat the current time. - Corrects timestamps outside the activity range. It returns
200with emptyitemsandrangeinstead. - Shortens windows longer than 90 days. When you send both timestamps more than 90 days apart, it
returns
400.