This endpoint allows registered integrators (e.g. trading front-ends, wallets, or analytics platforms) to withdraw the share of swap fees they have accrued from trades routed through their integration. The withdrawal itself is processed asynchronously by the TEE-secured settlement service.
Integrators earn a portion of the integrator fee configured on each swap:
integratorFeeRateBps and the associated fee-split vector).nonce.assetAAmount / assetBAmount are provided, only those amounts will be withdrawn.Requires a valid JWT bearer token. The token’s public key must be the same key that signs the request payload.
lpIdentityPublicKey – LP public key of the pool to withdraw from.assetAAmount – Optional amount of asset A fees to withdraw.assetBAmount – Optional amount of asset B fees to withdraw.nonce – Unique value for replay protection.signature – Signature over the canonical JSON payload.Returns a request ID for tracking the asynchronous withdrawal. Transfer IDs for each asset are included once the settlement service accepts the request.
lp_identity_public_key – Pool identifier (LP public key).asset_b_amount – Optional amount of asset B fees to withdraw.nonce – Unique nonce for replay protection.signature – Request signature.200 OK when the withdrawal request is accepted.400 Bad Request if validation fails.401 Unauthorized if authentication fails.404 Not Found if the pool is unknown.500 Internal Server Error if the settlement service errors.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Integrator fee withdrawal request details including pool ID, optional amounts, and authentication.
Request payload for withdrawing integrator fees from an AMM pool.
Identity public key of the LP wallet (pool ID).
"03abcdef0123456789abcdef0123456789abcdef0123456789abcdef01234567"
Nonce used for signature replay-protection.
"550e8400-e29b-41d4-a716-446655440000"
ECDSA signature of the vectorized JSON payload including all the other fields in this request.
"3045022100..."
Amount of asset B fees to withdraw in the smallest unit. Set to 0 to withdraw all available fees.
x >= 0500000
Integrator fee withdrawal initiated successfully
Response for host fee withdrawal
Request ID for tracking
"01HJZKFABCDEFGHJKLMNPQRSTVW"
Whether withdrawal was initiated
true
Settlement service request ID for correlation
"018D5E56-9D80-7890-A1B2-C3D4E5F6G7H8"
Asset B amount withdrawn
x >= 0"500000"
Spark transfer ID for withdrawal
Error message if rejected