This endpoint retrieves the historical fee withdrawal records for the authenticated host. Hosts can view all their past withdrawals with comprehensive filtering and pagination options.
Requires a valid JWT bearer token. The token’s public key identifies the host whose withdrawal history will be returned.
page - Page number (1-indexed), default: 1pageSize - Items per page (max 100), default: 20lpPubkey - Optional: Filter by specific poolassetB - Optional: Filter by specific asset BfromDate - Optional: Start date filter (ISO 8601)toDate - Optional: End date filter (ISO 8601)sortOrder - Sort order: “desc” (default) or “asc”Returns a paginated list of withdrawal records with metadata including total count, page information, and optionally the total amount withdrawn.
200 OK with withdrawal history400 Bad Request if query parameters are invalid401 Unauthorized if authentication fails500 Internal Server Error if database query failsBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Page number (1-indexed)
x >= 1Number of items per page (max 100)
1 <= x <= 100Optional: Filter by specific pool LP public key
Optional: Filter by specific asset B public key
Optional: Start date for filtering (ISO 8601)
Optional: End date for filtering (ISO 8601)
Sort order: "desc" (newest first) or "asc" (oldest first)
Fee withdrawal history retrieved successfully
Response for querying fee withdrawal history
List of withdrawal records
Total count of withdrawals (for pagination)
150
Current page number (1-indexed)
1
Number of items per page
20
Total amount withdrawn across all records (in the filter, not just this page)
x >= 0