GET /tokens/{address}/transfers, which lists
transfers of one token across the whole network: every ERC-20, ERC-721, or ERC-1155 transfer
whose token is address. It is the dedicated replacement for querying
GET /token-transfers by token address.
This change is backward-compatible. It adds an endpoint and does not change any existing one.
Query Parameters
Time Windows
Every request covers at most 90 days:- Pass both
timestampFromandtimestampToto choose the window. - Pass only one of them, and the other is set 90 days away from it.
- Pass neither, and you get the latest 90 days.
- A window longer than 90 days, or
timestampFromaftertimestampTo, returns400.
Pagination
The response is{ items, hasMore, window }. items and hasMore work as on
GET /token-transfers. window holds the timestampFrom and timestampTo the request was
bounded to, including the defaults when you omitted them.
While hasMore is true, request the next page with the same filters, send the window values
as timestampFrom and timestampTo, and pass the last item’s id as id. Sending the window
back keeps it fixed, so no page is skipped while new transfers arrive.
Stricter Input
UnlikeGET /token-transfers, this endpoint rejects input it cannot use, with a 400 instead
of a silently wrong result:
- Unknown query parameters. A misspelled or snake_case name such as
token_addressorpage_sizereturns400instead of being ignored. - Invalid timestamps. A
timestampFrombefore 2021-01-01, the start of Starknet, returns400, as does a negative, non-finite, or later-than-2038 value for either timestamp. - Malformed ids.
idmust be the lowercase hex id from a previous response, up to 24 characters. An uppercase, non-hex, or longer value returns400. A well-formed id that did not come from a response is not rejected, but the page it returns is meaningless.
Response Items
Items have the same fields asGET /contracts/{contractAddress}/transfers items, except
txOperations, including resolved token names, symbols and decimals, address labels, and a
tokenIcon. ERC-721 items also carry itemImage, and
ERC-1155 items itemImages. Name, label, and image fields are best-effort metadata and can be
null.
Moving From GET /token-transfers
Questions or migration issues: contact us.