# spark\_flashnet\_confirmInitialDeposit

{% hint style="info" %}
This method is coming :soon:
{% endhint %}

Use the `spark_flashnet_confirmInitialDeposit` method to activate a newly created bonding (single-sided) pool on Flashnet after the initial Asset A deposit has been made.\
This confirms the deposit proof and transitions the pool into an active state where it can start trading.

***

## Example

```ts
import { request } from "sats-connect";

try {
  const response = await request("spark_flashnet_confirmInitialDeposit", {
    poolId: "03poollpidentitypubkeyfedcba9876543210fedcba9876543210fedcba9876",
    assetASparkTransferId: "spark-transfer-uuid-or-hash-for-asset-a",
    poolOwnerPublicKey: "03b06b7c3e39bf922be19b7ad5f19554bb7991cae585ed2e3374d51213ff4eeb3c",
    nonce: "confirm-deposit-nonce-789"
  });

  if ("result" in response) {
    console.log("Deposit confirmation result:", response.result);
  } else {
    console.error("Confirm deposit failed:", response.error.message);
  }
} catch (error) {
  console.error("Unexpected error:", error);
}
```

***

## Parameters

* **`poolId`** *(string, required)* — ID of the Flashnet pool (public key).
* **`assetASparkTransferId`** *(string, required)* — Spark transfer ID proving the initial Asset A deposit.
* **`poolOwnerPublicKey`** *(string, optional)* — Public key of the pool owner. If omitted, derived from JWT.
* **`nonce`** *(string, required)* — Unique value to prevent replay attacks.

***

## What it does

When called, the wallet:

1. Validates the provided Spark transfer ID.
2. Shows the user a confirmation screen summarizing the deposit and pool activation.
3. On approval, signs the request with the user’s Spark key.
4. Submits the confirmation to Flashnet.
5. Returns the pool activation result.

***

## Response

The method returns a Promise that resolves to a `SparkFlashnetConfirmInitialDepositResult` object:

### **✅ Success**

```json
{
  "poolId": "03aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899",
  "confirmed": true,
  "message": "Initial deposit confirmed and pool activated"
}
```

### **⚠️ Failure**

```json
{
  "confirmed": false,
  "error": "Invalid deposit transfer ID"
}
```


---

# 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_confirminitialdeposit.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.
