GET
/
v1
/
hosts
/
fee-withdrawal-history
Get Host Fee Withdrawal History
curl --request GET \
  --url https://api.amm.flashnet.xyz/v1/hosts/fee-withdrawal-history \
  --header 'Authorization: Bearer <token>'
{
  "page": 1,
  "pageSize": 20,
  "totalCount": 150,
  "totalWithdrawn": "25000000",
  "withdrawals": [
    {
      "amount": "500000",
      "assetPubkey": "BTC",
      "id": 12345,
      "lpPubkey": "03abcdef0123456789abcdef0123456789abcdef0123456789abcdef01234567",
      "poolAssetAAddress": "USD",
      "poolAssetBAddress": "BTC",
      "requestId": "01HJZKFABCDEFGHJKLMNPQRSTVW",
      "settlementRequestId": "550e8400-e29b-41d4-a716-446655440000",
      "timestamp": "2025-01-15T10:30:00Z",
      "transferId": "spark-transfer-uuid-123"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Query Parameters

page
integer

Page number (1-indexed)

Required range: x >= 1
pageSize
integer

Number of items per page (max 100)

Required range: 1 <= x <= 100
lpPubkey
string | null

Optional: Filter by specific pool LP public key

assetB
string | null

Optional: Filter by specific asset B public key

fromDate
any

Optional: Start date for filtering (ISO 8601)

toDate
any

Optional: End date for filtering (ISO 8601)

sortOrder
string

Sort order: "desc" (newest first) or "asc" (oldest first)

Response

Fee withdrawal history retrieved successfully

Response for querying fee withdrawal history

withdrawals
object[]
required

List of withdrawal records

totalCount
integer
required

Total count of withdrawals (for pagination)

Example:

150

page
integer
required

Current page number (1-indexed)

Example:

1

pageSize
integer
required

Number of items per page

Example:

20

totalWithdrawn
integer | null

Total amount withdrawn across all records (in the filter, not just this page)

Required range: x >= 0