Skip to main content
The Flashnet SDK provides methods to query historical swap data, allowing you to track trading activity across the AMM, for specific pools, or for individual users.

Get Global Swaps

Retrieve a list of the latest swaps across all pools on the AMM.

Get Pool Swaps

Fetch the swap history for a single, specific pool.

Get User Swaps

Retrieve the trading history for a specific user. If no user public key is provided, it defaults to the client’s wallet public key.

Filtering and Pagination

All history methods support limit and offset for pagination, as well as other filters like startTime and endTime. Refer to the ListPoolSwapsQuery, ListGlobalSwapsQuery, and ListUserSwapsQuery types in src/types/index.ts for a full list of available filters.

Next Steps