GET
/
v1
/
pools
/
{lpPubkey}
/
swaps
Get Pool Swaps
curl --request GET \
  --url https://api.amm.flashnet.xyz/v1/pools/{lpPubkey}/swaps
{
  "swaps": [
    {
      "amountIn": "1000000",
      "amountOut": "500000",
      "assetInAddress": "66471063147ab9f53515bf18d1cea9a8ad166840ba9de93d46018d7007426e17",
      "assetOutAddress": "020202020202020202020202020202020202020202020202020202020202020202",
      "createdAt": "2025-01-15T10:30:00Z",
      "feePaid": "5000",
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "inboundTransferId": "550e8400-e29b-41d4-a716-446655440001",
      "outboundTransferId": "550e8400-e29b-41d4-a716-446655440001",
      "price": "0.5",
      "swapperPublicKey": "03a1b2c3d4e5f6789012345678901234567890123456789012345678901234567890"
    }
  ],
  "totalCount": 150
}

Path Parameters

lpPubkey
string
required

The LP public key identifying the pool

Query Parameters

limit
integer | null
default:20

Maximum number of swaps to return in the response. Helps manage response size for pools with many swaps.

Required range: 1 <= x <= 100
offset
integer | null
default:0

Number of swaps to skip before starting to collect results. Used for paginating through large result sets.

Required range: x >= 0
startTime
string | null

Start timestamp (inclusive) in RFC3339 format.

endTime
string | null

End timestamp (inclusive) in RFC3339 format.

Response

200
application/json

Swap history retrieved successfully

Response for listing pool swaps