POST
/
v1
/
pools
/
single-sided
/
confirm-initial-deposit
Confirm Initial Deposit
curl --request POST \
  --url https://api.amm.flashnet.xyz/v1/pools/single-sided/confirm-initial-deposit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "assetASparkTransferId": "spark-transfer-uuid-or-hash-for-asset-a",
  "nonce": "confirm-deposit-nonce-789",
  "poolId": "03poollpidentitypubkeyfedcba9876543210fedcba9876543210fedcba9876",
  "signature": "3045022100a7e5d4f8b2c9a1e6f0d5b8c4a9e7f2d1c8b5a4e9f0d6c5b3a2e1d0c9b8a7f02201f2e3d4c5b6a7980e9f0a1b2c3d4e5f67889a0b1c2d3e4f5a6b7c8d9e0f1a2b3"
}'
{
"confirmed": true,
"message": "Initial deposit confirmed and pool activated",
"poolId": "03poollpidentitypubkeyfedcba9876543210fedcba9876543210fedcba9876"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Deposit confirmation details including transfer proof and authentication

Request to confirm the initial deposit for an AMM pool.

poolId
string
required

The unique identifier of the pool (LP identity public key).

Example:

"03poollpidentitypubkeyfedcba9876543210fedcba9876543210fedcba9876"

assetASparkTransferId
string
required

Spark network transfer ID proving the deposit of Asset A to the pool's wallet.

Example:

"spark-transfer-uuid-or-hash-for-asset-a"

nonce
string
required

Nonce for replay protection.

Example:

"confirm-deposit-nonce-789"

signature
string
required

Signature of the nonce (hex encoded).

Example:

"3045022100def001122..."

poolOwnerPublicKey
string | null

Optional: Pool owner public key (if not provided, will be extracted from auth token).

Example:

"03b06b7c3e39bf922be19b7ad5f19554bb7991cae585ed2e3374d51213ff4eeb3c"

Response

Deposit confirmation initiated. Pool will be activated upon successful processing.

Response for confirming initial pool deposit

poolId
string
required

Pool ID

Example:

"03aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899"

confirmed
boolean
required

Whether the deposit was confirmed

Example:

true

message
string
required

Human-readable message

Example:

"Initial deposit confirmed and pool activated"