POST
/
v1
/
integrators
/
withdraw-fees
Withdraw Integrator Fees
curl --request POST \
  --url https://api.amm.flashnet.xyz/v1/integrators/withdraw-fees \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "assetAAmount": 1000000,
  "assetBAmount": 500000,
  "lpIdentityPublicKey": "03abcdef0123456789abcdef0123456789abcdef0123456789abcdef01234567",
  "nonce": "550e8400-e29b-41d4-a716-446655440000",
  "signature": "3045022100a7e5d4f8b2c9a1e6f0d5b8c4a9e7f2d1c8b5a4e9f0d6c5b3a2e1d0c9b8a7f02201f2e3d4c5b6a7980e9f0a1b2c3d4e5f67889a0b1c2d3e4f5a6b7c8d9e0f1a2b3"
}'
{
"accepted": true,
"assetAWithdrawn": 1000000,
"assetBWithdrawn": 500000,
"requestId": "550e8400-e29b-41d4-a716-446655441111",
"transferIds": {
"assetA": "spark-transfer-asset-a-uuid",
"assetB": "spark-transfer-asset-b-uuid"
}
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Integrator fee withdrawal request details including pool ID, optional amounts, and authentication.

Request payload for withdrawing integrator fees from an AMM pool.

Response

200
application/json

Integrator fee withdrawal initiated successfully

Response for host fee withdrawal