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).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_a_amount
– Optional amount of asset A fees to withdraw.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.
Integrator fee withdrawal initiated successfully
Response for host fee withdrawal