POST
/
v1
/
clawback
Clawback Funds
curl --request POST \
  --url https://api.amm.flashnet.xyz/v1/clawback \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "lpIdentityPublicKey": "03aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899",
  "nonce": "clawback-nonce-123456",
  "senderPublicKey": "02abcdef0123456789abcdef0123456789abcdef0123456789abcdef01234567",
  "signature": "3045022100a7e5d4f8b2c9a1e6f0d5b8c4a9e7f2d1c8b5a4e9f0d6c5b3a2e1d0c9b8a7f02201f2e3d4c5b6a7980e9f0a1b2c3d4e5f67889a0b1c2d3e4f5a6b7c8d9e0f1a2b3",
  "sparkTransferId": "550e8400-e29b-41d4-a716-446655440000"
}'
{
"accepted": true,
"internalRequestId": "settlement-internal-123",
"requestId": "01HJZKFABCDEFGHJKLMNPQRSTVW",
"sparkStatusTrackingId": "spark-track-456"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Clawback request details including transfer ID and authentication

Request body for clawing back stuck funds.

Clawbacks allow users to recover funds that were sent to an LP wallet but were not processed correctly. This is a safety mechanism to prevent permanent loss of funds due to system failures or edge cases.

Response

Clawback accepted for processing

Response for a successful clawback request