This endpoint returns a paginated list of transfers that are eligible to be clawed back. It queries the Sparkscan API for transfers sent by the authenticated user and then filters them based on eligibility criteria (status, age, spent status).
A transfer is included in the list if:
amm_swaps table)amm_liquidity
table)sparkscan:atomic:{...} keys)transfer:{id} keys - catches already
clawed back transfers)Results are paginated with configurable limits:
offset to skip transfers for paginationlimit - Maximum number of transfers to return (1-500)offset - Number of transfers to skip for paginationAuthorization header - used to identify the sender200 OK with ListClawbackableTransfersResponse containing eligible transfers with
timestamps (empty array if no eligible transfers found or user has not interacted with any
pools)400 Bad Request if query parameter validation fails401 Unauthorized if authentication fails or token is invalid500 Internal Server Error if database or Sparkscan service failsBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Maximum number of transfers to return per page. Defaults to 20, maximum 500.
Number of transfers to skip before starting to collect the result set. Used for pagination - set to 0 for first page, 20 for second page (with limit=20), etc.
(Internal/debug) Override the user public key to query clawbackable transfers for. When provided, queries transfers for this pubkey instead of the authenticated user.
List of eligible transfers with timestamps (or empty if none found)
Response for listing eligible clawback transfers
Contains a paginated list of transfers filtered for eligibility (not spent/reserved).
List of transfers that are eligible for clawback (paginated)