# spark\_flashnet\_getClawbackEligibleTransfers

Use `spark_flashnet_getClawbackEligibleTransfers` to check whether the connected Xverse wallet has **any Spark transfers that are eligible for Flashnet clawback**.

{% hint style="info" %}
This method is **read-only** — it does not perform the clawback.\
It simply returns the transfers that Xverse + Flashnet consider eligible.

You can use [spark\_flashnet\_clawbackFunds](/sats-connect/spark-methods/flashnet-trading/spark_flashnet_clawbackfunds.md)to perform the clawback for an eligible transfer.&#x20;
{% endhint %}

***

## Request

```ts
await request("spark_flashnet_getClawbackEligibleTransfers", {});
```

* **Takes no parameters.**
* You should call it exactly like this:

```ts
const res = await request("spark_flashnet_getClawbackEligibleTransfers", {});
```

***

## Response

Returns an array of eligible transfers:

```ts
{
  eligibleTransfers: Array<{
    txId: string;                // Spark transfer ID (sparkTransferId)
    createdAt: string;           // ISO timestamp of the original transfer
    lpIdentityPublicKey: string; // LP that received the funds
  }>
}
```

#### **Example with eligible transfers**

```json
{
  "eligibleTransfers": [
    {
      "txId": "550e8400-e29b-41d4-a716-446655440000",
      "createdAt": "2025-11-20T10:15:00Z",
      "lpIdentityPublicKey": "03aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899"
    }
  ]
}
```

#### If no transfers are eligible:

```json
{
  "eligibleTransfers": []
}
```

***

## What it does

Xverse performs all eligibility logic before returning results:

* Transfer was **sent from the connected user**
* Transfer was sent **to a valid Flashnet LP identity**
* Transfer is **not already used** (swap, liquidity, etc.)
* Transfer is **younger than Flashnet’s clawback window**
* Transfer is **valid on Spark** (confirmed)
* Transfer is **not already reserved** or part of settlement flow

Only transfers that pass all checks are returned to your app.

***

## Errors

Standard Sats Connect error format:

```json
{
  "code": "FLASHNET_ELIGIBILITY_FAILED",
  "message": "Unable to fetch clawback eligibility.",
  "details": {
    "reason": "JWT_AUTH_FAILED" | "FLASHNET_ERROR" | "NETWORK_ERROR"
  }
}
```

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.xverse.app/sats-connect/spark-methods/flashnet-trading/spark_flashnet_getclawbackeligibletransfers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
