Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Fee withdrawal details including pool ID, amounts, and authentication
Request payload for withdrawing host fees from an AMM pool.
This struct defines the required parameters for a host to withdraw accumulated fees from an AMM pool. The request includes the pool ID, optional amounts to withdraw, and authentication/signature data.
Identity public key of the LP wallet (pool ID). This identifies which pool to withdraw fees from.
"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..."
Optional: Amount of asset B fees to withdraw in the smallest unit. If not specified, all available asset B fees will be withdrawn.
x >= 0
500000
Response
Fee withdrawal initiated successfully
Response for host fee withdrawal
Request ID for tracking
"01HJZKFABCDEFGHJKLMNPQRSTVW"
Whether withdrawal was initiated
true
Asset B amount withdrawn
x >= 0
"500000"
Spark transfer ID for withdrawal
Error message if rejected